Skip to content

Commit 6b2c367

Browse files
committed
initial commit of AK gem scaffolding.
1 parent 750dd5d commit 6b2c367

File tree

9 files changed

+227
-79
lines changed

9 files changed

+227
-79
lines changed

.gitignore

Lines changed: 5 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -15,35 +15,12 @@ doc
1515
# jeweler generated
1616
pkg
1717

18-
# Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
19-
#
20-
# * Create a file at ~/.gitignore
21-
# * Include files you want ignored
22-
# * Run: git config --global core.excludesfile ~/.gitignore
23-
#
24-
# After doing this, these files will be ignored in all your git projects,
25-
# saving you from having to 'pollute' every project you touch with them
26-
#
27-
# Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
28-
#
29-
# For MacOS:
30-
#
31-
#.DS_Store
18+
.DS_Store
3219

3320
# For TextMate
34-
#*.tmproj
35-
#tmtags
21+
*.tmproj
22+
tmtags
3623

37-
# For emacs:
38-
#*~
39-
#\#*
40-
#.\#*
24+
.idea
4125

42-
# For vim:
43-
#*.swp
44-
45-
# For redcar:
46-
#.redcar
47-
48-
# For rubinius:
49-
#*.rbc
26+
tmp/

.rvmrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
rvm_install_on_use_flag=1
2+
rvm use --create ruby-1.9.3-p286-perf@actionkit-rest
3+
4+
export RUBY_HEAP_MIN_SLOTS=1000000
5+
export RUBY_HEAP_SLOTS_INCREMENT=1000000
6+
export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
7+
export RUBY_GC_MALLOC_LIMIT=1000000000
8+
export RUBY_HEAP_FREE_MIN=500000

Gemfile

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,21 @@ source "http://rubygems.org"
33
# Example:
44
# gem "activesupport", ">= 2.3.5"
55

6+
gem "activesupport"
7+
gem "faraday"
8+
69
# Add dependencies to develop your gem here.
710
# Include everything needed to run rake, tests, features, etc.
811
group :development do
9-
gem "shoulda", ">= 0"
10-
gem "rdoc", "~> 3.12"
11-
gem "bundler", "~> 1.0.0"
12+
gem "rspec"
13+
gem "guard"
14+
gem "guard-rspec"
15+
gem "pry"
16+
gem "pry-debugger"
17+
gem "rb-fsevent"
18+
19+
20+
gem "rdoc"
21+
gem "bundler"
1222
gem "jeweler", "~> 1.8.4"
13-
gem "rcov", ">= 0"
1423
end

Gemfile.lock

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
GEM
2+
remote: http://rubygems.org/
3+
specs:
4+
activesupport (3.2.12)
5+
i18n (~> 0.6)
6+
multi_json (~> 1.0)
7+
coderay (1.0.9)
8+
columnize (0.3.6)
9+
debugger (1.4.0)
10+
columnize (>= 0.3.1)
11+
debugger-linecache (~> 1.1.1)
12+
debugger-ruby_core_source (~> 1.2.0)
13+
debugger-linecache (1.1.2)
14+
debugger-ruby_core_source (>= 1.1.1)
15+
debugger-ruby_core_source (1.2.0)
16+
diff-lcs (1.2.1)
17+
faraday (0.8.6)
18+
multipart-post (~> 1.1)
19+
git (1.2.5)
20+
guard (1.6.2)
21+
listen (>= 0.6.0)
22+
lumberjack (>= 1.0.2)
23+
pry (>= 0.9.10)
24+
terminal-table (>= 1.4.3)
25+
thor (>= 0.14.6)
26+
guard-rspec (2.5.0)
27+
guard (>= 1.1)
28+
rspec (~> 2.11)
29+
i18n (0.6.4)
30+
jeweler (1.8.4)
31+
bundler (~> 1.0)
32+
git (>= 1.2.5)
33+
rake
34+
rdoc
35+
json (1.7.7)
36+
listen (0.7.3)
37+
lumberjack (1.0.2)
38+
method_source (0.8.1)
39+
multi_json (1.6.1)
40+
multipart-post (1.2.0)
41+
pry (0.9.12)
42+
coderay (~> 1.0.5)
43+
method_source (~> 0.8)
44+
slop (~> 3.4)
45+
pry-debugger (0.2.2)
46+
debugger (~> 1.3)
47+
pry (~> 0.9.10)
48+
rake (10.0.3)
49+
rb-fsevent (0.9.3)
50+
rdoc (4.0.0)
51+
json (~> 1.4)
52+
rspec (2.13.0)
53+
rspec-core (~> 2.13.0)
54+
rspec-expectations (~> 2.13.0)
55+
rspec-mocks (~> 2.13.0)
56+
rspec-core (2.13.1)
57+
rspec-expectations (2.13.0)
58+
diff-lcs (>= 1.1.3, < 2.0)
59+
rspec-mocks (2.13.0)
60+
slop (3.4.4)
61+
terminal-table (1.4.5)
62+
thor (0.17.0)
63+
64+
PLATFORMS
65+
ruby
66+
67+
DEPENDENCIES
68+
activesupport
69+
bundler
70+
faraday
71+
guard
72+
guard-rspec
73+
jeweler (~> 1.8.4)
74+
pry
75+
pry-debugger
76+
rb-fsevent
77+
rdoc
78+
rspec

LICENSE.txt

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
1-
Copyright (c) 2013 Nathan Woodhull
1+
Copyright (c) 2013, ControlShift, Ltd.
2+
All rights reserved.
23

3-
Permission is hereby granted, free of charge, to any person obtaining
4-
a copy of this software and associated documentation files (the
5-
"Software"), to deal in the Software without restriction, including
6-
without limitation the rights to use, copy, modify, merge, publish,
7-
distribute, sublicense, and/or sell copies of the Software, and to
8-
permit persons to whom the Software is furnished to do so, subject to
9-
the following conditions:
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are met:
6+
* Redistributions of source code must retain the above copyright
7+
notice, this list of conditions and the following disclaimer.
8+
* Redistributions in binary form must reproduce the above copyright
9+
notice, this list of conditions and the following disclaimer in the
10+
documentation and/or other materials provided with the distribution.
11+
* Neither the name of the ControlShift, Ltd. nor the
12+
names of its contributors may be used to endorse or promote products
13+
derived from this software without specific prior written permission.
1014

11-
The above copyright notice and this permission notice shall be
12-
included in all copies or substantial portions of the Software.
13-
14-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
16+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18+
DISCLAIMED. IN NO EVENT SHALL CONTROLSHIFT LTD. BE LIABLE FOR ANY
19+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.rdoc

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,9 @@
11
= actionkit-rest
22

3-
Description goes here.
4-
5-
== Contributing to actionkit-rest
6-
7-
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
8-
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
9-
* Fork the project.
10-
* Start a feature/bugfix branch.
11-
* Commit and push until you are happy with your contribution.
12-
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13-
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
3+
A ruby binding for the ActionKit REST API
144

155
== Copyright
166

17-
Copyright (c) 2013 Nathan Woodhull. See LICENSE.txt for
7+
Copyright (c) 2013 ControlShift Ltd. See LICENSE.txt for
188
further details.
199

Rakefile

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,26 @@ require 'jeweler'
1515
Jeweler::Tasks.new do |gem|
1616
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
1717
gem.name = "actionkit-rest"
18-
gem.homepage = "http://github.com/woodhull/actionkit-rest"
18+
gem.homepage = "http://github.com/controlshift/actionkit-rest"
1919
gem.license = "MIT"
20-
gem.summary = %Q{TODO: one-line summary of your gem}
21-
gem.description = %Q{TODO: longer description of your gem}
20+
gem.summary = %Q{A wrapper for the ActionKit REST API}
21+
gem.description = %Q{Gem for interacting with the ActionKit API}
2222
gem.email = "[email protected]"
2323
gem.authors = ["Nathan Woodhull"]
2424
# dependencies defined in Gemfile
2525
end
2626
Jeweler::RubygemsDotOrgTasks.new
2727

28-
require 'rake/testtask'
29-
Rake::TestTask.new(:test) do |test|
30-
test.libs << 'lib' << 'test'
31-
test.pattern = 'test/**/test_*.rb'
32-
test.verbose = true
33-
end
3428

35-
require 'rcov/rcovtask'
36-
Rcov::RcovTask.new do |test|
37-
test.libs << 'test'
38-
test.pattern = 'test/**/test_*.rb'
39-
test.verbose = true
40-
test.rcov_opts << '--exclude "gems/*"'
41-
end
29+
require 'rspec/core/rake_task'
30+
desc 'Default: run specs.'
31+
task :default => :spec
4232

43-
task :default => :test
33+
desc "Run specs"
34+
RSpec::Core::RakeTask.new do |t|
35+
t.pattern = "./spec/**/*_spec.rb" # don't need this, it's default.
36+
t.rspec_opts = '--color'
37+
end
4438

4539
require 'rdoc/task'
4640
Rake::RDocTask.new do |rdoc|

actionkit-rest.gemspec

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# Generated by jeweler
2+
# DO NOT EDIT THIS FILE DIRECTLY
3+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4+
# -*- encoding: utf-8 -*-
5+
6+
Gem::Specification.new do |s|
7+
s.name = "actionkit-rest"
8+
s.version = "0.1.0"
9+
10+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11+
s.authors = ["Nathan Woodhull"]
12+
s.date = "2013-03-13"
13+
s.description = "Gem for interacting with the ActionKit API"
14+
s.email = "[email protected]"
15+
s.extra_rdoc_files = [
16+
"LICENSE.txt",
17+
"README.rdoc"
18+
]
19+
s.files = [
20+
".document",
21+
".rvmrc",
22+
"Gemfile",
23+
"Gemfile.lock",
24+
"LICENSE.txt",
25+
"README.rdoc",
26+
"Rakefile",
27+
"VERSION",
28+
"lib/actionkit-rest.rb",
29+
"spec/spec_helper.rb"
30+
]
31+
s.homepage = "http://github.com/controlshift/actionkit-rest"
32+
s.licenses = ["MIT"]
33+
s.require_paths = ["lib"]
34+
s.rubygems_version = "1.8.24"
35+
s.summary = "A wrapper for the ActionKit REST API"
36+
37+
if s.respond_to? :specification_version then
38+
s.specification_version = 3
39+
40+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
41+
s.add_runtime_dependency(%q<activesupport>, [">= 0"])
42+
s.add_runtime_dependency(%q<faraday>, [">= 0"])
43+
s.add_development_dependency(%q<rspec>, [">= 0"])
44+
s.add_development_dependency(%q<guard>, [">= 0"])
45+
s.add_development_dependency(%q<guard-rspec>, [">= 0"])
46+
s.add_development_dependency(%q<pry>, [">= 0"])
47+
s.add_development_dependency(%q<pry-debugger>, [">= 0"])
48+
s.add_development_dependency(%q<rb-fsevent>, [">= 0"])
49+
s.add_development_dependency(%q<rdoc>, [">= 0"])
50+
s.add_development_dependency(%q<bundler>, [">= 0"])
51+
s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
52+
else
53+
s.add_dependency(%q<activesupport>, [">= 0"])
54+
s.add_dependency(%q<faraday>, [">= 0"])
55+
s.add_dependency(%q<rspec>, [">= 0"])
56+
s.add_dependency(%q<guard>, [">= 0"])
57+
s.add_dependency(%q<guard-rspec>, [">= 0"])
58+
s.add_dependency(%q<pry>, [">= 0"])
59+
s.add_dependency(%q<pry-debugger>, [">= 0"])
60+
s.add_dependency(%q<rb-fsevent>, [">= 0"])
61+
s.add_dependency(%q<rdoc>, [">= 0"])
62+
s.add_dependency(%q<bundler>, [">= 0"])
63+
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
64+
end
65+
else
66+
s.add_dependency(%q<activesupport>, [">= 0"])
67+
s.add_dependency(%q<faraday>, [">= 0"])
68+
s.add_dependency(%q<rspec>, [">= 0"])
69+
s.add_dependency(%q<guard>, [">= 0"])
70+
s.add_dependency(%q<guard-rspec>, [">= 0"])
71+
s.add_dependency(%q<pry>, [">= 0"])
72+
s.add_dependency(%q<pry-debugger>, [">= 0"])
73+
s.add_dependency(%q<rb-fsevent>, [">= 0"])
74+
s.add_dependency(%q<rdoc>, [">= 0"])
75+
s.add_dependency(%q<bundler>, [">= 0"])
76+
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
77+
end
78+
end
79+

spec/spec_helper.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
require 'rspec'
2+
3+
$LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')
4+
5+
require 'actionkit-rest'
6+
7+
RSpec.configure do |config|
8+
9+
end

0 commit comments

Comments
 (0)