activegist 0.6.4 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: bdc5b895d5ae92cd675a9025e6c6a48f469eb0bf
4
+ data.tar.gz: 0357e681690985952b7f3092171c0de396395d23
5
+ SHA512:
6
+ metadata.gz: 4301d242d38735b3a77ab10ddaa8465c3f5ca010182bf6306a901f0b3ee100b3f3fccdb20b4f2d2800b498f0433373b9a5d0bcdbcfaa1eb9359dea5560bfc640
7
+ data.tar.gz: fdae8a42aa92fb6ff25004cc91ee9135d2e9f2c33952c4e2af9ca6f26ae6fa1a03c87d05f5f7ce8f1c577e48000627f1a6a464989627ca80bce6599eefd1fc47
data/.gitignore CHANGED
@@ -4,3 +4,4 @@ Gemfile.lock
4
4
  pkg/*
5
5
  html
6
6
  doc
7
+ coverage
@@ -1,8 +1,7 @@
1
1
  rvm:
2
- - 1.8.7
3
- - 1.9.2
4
- - 1.9.3
5
- # - ree
6
- # - jruby
2
+ - 2.0.0
7
3
  - ruby-head
8
- - rbx-2.0
4
+
5
+ matrix:
6
+ allow_failures:
7
+ - rvm: ruby-head
@@ -1,4 +1,4 @@
1
- = ActiveGist! {<img src="https://secure.travis-ci.org/sinisterchipmunk/active-gist.png" />}[http://travis-ci.org/sinisterchipmunk/active-gist]
1
+ = ActiveGist! {<img src="https://secure.travis-ci.org/sinisterchipmunk/active-gist.png" />}[http://travis-ci.org/sinisterchipmunk/active-gist] {<img src="https://codeclimate.com/github/sinisterchipmunk/active-gist.png" />}[https://codeclimate.com/github/sinisterchipmunk/active-gist] {<img src="https://coveralls.io/repos/sinisterchipmunk/active-gist/badge.png" alt="Coverage Status" />}[https://coveralls.io/r/sinisterchipmunk/active-gist]
2
2
 
3
3
  I needed a Ruby library to perform basic create, read, update and delete operations on Gists. I looked, I saw basically nothing (except hacky, test-less tools), and I decided to roll my own. Here's the result.
4
4
 
@@ -6,13 +6,12 @@ ActiveGist is so named because it wraps GitHub's Gist API with a class implement
6
6
 
7
7
  == Installation
8
8
 
9
- The obligatory installation steps, in case you haven't yet figured out they're the same as any other gem...
9
+ The obligatory installation steps...
10
10
 
11
11
  gem install activegist
12
12
 
13
13
  == Usage
14
14
 
15
- require 'rubygems' # on old rubies
16
15
  require 'activegist'
17
16
 
18
17
  # Set up credentials. A required step, as far as I know.
@@ -18,12 +18,13 @@ Gem::Specification.new do |s|
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
19
  s.require_paths = ["lib"]
20
20
 
21
- s.add_development_dependency "rspec", '~> 2.8.0'
22
- s.add_development_dependency "fakeweb", '~> 1.3.0'
23
- s.add_development_dependency 'rake', "~> 0.9.2.2"
21
+ s.add_development_dependency "rspec", '~> 2.8'
22
+ s.add_development_dependency "fakeweb", '~> 1.3'
23
+ s.add_development_dependency 'rake', "~> 0.9"
24
24
  s.add_development_dependency 'rdoc', "~> 3.12"
25
+ s.add_development_dependency 'coveralls'
25
26
 
26
- s.add_runtime_dependency "activemodel", '~> 3.1'
27
- s.add_runtime_dependency "activesupport", '~> 3.1'
28
- s.add_runtime_dependency "rest-client", '~> 1.6.7'
27
+ s.add_runtime_dependency "activemodel", '~> 4'
28
+ s.add_runtime_dependency "activesupport", '~> 4'
29
+ s.add_runtime_dependency "rest-client", '~> 1.6'
29
30
  end
@@ -90,10 +90,10 @@ class ActiveGist
90
90
  run_callbacks create_or_update_callback do
91
91
  run_callbacks :save do
92
92
  if new_record?
93
- data = as_json(:only => [:description, :public, :files]).delete('active_gist').to_json
93
+ data = as_json(:only => [:description, :public, :files]).to_json
94
94
  response = api.post data, :content_type => 'application/json', :accept => 'application/json'
95
95
  else
96
- data = as_json(:only => [:description, :files]).delete('active_gist').to_json
96
+ data = as_json(:only => [:description, :files]).to_json
97
97
  response = api[id].patch data, :content_type => 'application/json', :accept => 'application/json'
98
98
  end
99
99
  self.attributes = JSON.parse response
@@ -1,92 +1,53 @@
1
1
  module ActiveGist::Attributes
2
2
  GIST_ATTRIBUTES = %w(url id description public user files comments
3
3
  html_url git_pull_url git_push_url created_at
4
- forks history updated_at comments_url)
5
-
4
+ forks forks_url history updated_at comments_url commits_url)
5
+
6
6
  def self.included(base) #:nodoc:
7
7
  base.define_attribute_methods GIST_ATTRIBUTES
8
8
  end
9
-
10
- def forks
11
- @forks
12
- end
13
-
14
- def history
15
- @history
16
- end
17
-
18
- def url
19
- @url
20
- end
21
-
22
- def id
23
- @id
24
- end
25
-
26
- def description
27
- @description
28
- end
29
-
9
+
10
+ attr_reader :url,
11
+ :id,
12
+ :description,
13
+ :user,
14
+ :files,
15
+ :comments,
16
+ :comments_url,
17
+ :created_at,
18
+ :forks,
19
+ :forks_url,
20
+ :history,
21
+ :updated_at,
22
+ :html_url,
23
+ :git_pull_url,
24
+ :git_push_url,
25
+ :commits_url
26
+
30
27
  def public?
31
28
  !!@public
32
29
  end
33
30
  alias public public?
34
-
35
- def user
36
- @user
37
- end
38
-
39
- def files
40
- @files
41
- end
42
-
43
- def comments
44
- @comments
45
- end
46
-
47
- def html_url
48
- @html_url
49
- end
50
-
51
- def git_pull_url
52
- @git_pull_url
53
- end
54
-
55
- def git_push_url
56
- @git_push_url
57
- end
58
-
59
- def created_at
60
- @created_at
61
- end
62
-
63
- def updated_at
64
- @updated_at
65
- end
66
31
 
67
- def comments_url
68
- @comments_url
69
- end
70
-
71
32
  def description=(descr)
72
33
  description_will_change!
73
34
  @description = descr
74
35
  end
75
-
36
+
76
37
  def public=(pub)
77
38
  public_will_change!
78
39
  @public = pub
79
40
  end
80
-
41
+
81
42
  def files=(files)
82
43
  files_will_change!
83
44
  @files = files
84
45
  end
85
-
46
+
86
47
  def attributes
87
48
  GIST_ATTRIBUTES.inject({}) { |h,k| h[k] = self[k]; h }
88
49
  end
89
-
50
+
90
51
  def attributes=(attributes)
91
52
  attributes.each do |key, value|
92
53
  if respond_to?(:"#{key}=")
@@ -104,7 +65,7 @@ module ActiveGist::Attributes
104
65
  def [](attribute)
105
66
  send attribute.to_sym
106
67
  end
107
-
68
+
108
69
  def []=(attribute, value)
109
70
  send :"#{attribute}=", value
110
71
  end
@@ -1,6 +1,6 @@
1
1
  class ActiveGist
2
2
  module Version
3
- MAJOR, MINOR, TINY = 0, 6, 4
3
+ MAJOR, MINOR, TINY = 0, 7, 0
4
4
  STRING = [MAJOR, MINOR, TINY].join '.'
5
5
  end
6
6
 
@@ -3,7 +3,7 @@ require 'test/unit'
3
3
 
4
4
  describe ActiveGist do
5
5
  let(:valid_attributes) do { :files => { "file1.txt" => { :content => 'String file contents' } } } end
6
-
6
+
7
7
  def expect_request(method, path, data = nil, headers = { :accept => 'application/json' }, return_val = {:id=>1})
8
8
  RestClient::Request.should_receive(:execute) do |options|
9
9
  expectation = [method, File.join("https://api.github.com", path)]
@@ -11,24 +11,26 @@ describe ActiveGist do
11
11
  case data
12
12
  when NilClass then expectation << nil; actual << options[:payload]
13
13
  when String then expectation << data; actual << options[:payload]
14
- when Hash then expectation << JSON.parse(data.to_json); actual << JSON.parse(options[:payload])
14
+ when Hash
15
+ expectation << JSON.parse(data.to_json)
16
+ actual << JSON.parse(options[:payload])
15
17
  else raise "Don't know how to handle data format: #{data.inspect}"
16
18
  end
17
19
  options[:headers].each { |k,v| headers[k] = v unless headers.key?(k) }
18
20
  expectation << headers
19
21
  actual << options[:headers]
20
-
22
+
21
23
  actual.should == expectation
22
24
  return_val.to_json
23
25
  end
24
26
  end
25
-
27
+
26
28
  it "should not be 'equal' to another object with same id" do
27
29
  obj = Object.new
28
30
  def obj.id; '1'; end
29
31
  ActiveGist.new(:id => '1').should_not == obj
30
32
  end
31
-
33
+
32
34
  describe "a new gist" do
33
35
  it "assign a file and validate" do
34
36
  a = ActiveGist.new
@@ -36,21 +38,21 @@ describe ActiveGist do
36
38
  a.should be_valid
37
39
  end
38
40
  end
39
-
41
+
40
42
  describe "an existing gist" do
41
43
  describe "that is starred" do
42
44
  subject { ActiveGist.find(1) }
43
-
45
+
44
46
  it "check if it is starred" do
45
47
  subject.should be_starred
46
48
  end
47
-
49
+
48
50
  it "check valid request" do
49
51
  subject
50
52
  expect_request(:get, "/gists/1/star")
51
53
  subject.starred?
52
54
  end
53
-
55
+
54
56
  describe "unstarring it" do
55
57
  it { subject.unstar!; should_not be_starred }
56
58
  it "check valid request" do
@@ -60,14 +62,14 @@ describe ActiveGist do
60
62
  end
61
63
  end
62
64
  end
63
-
65
+
64
66
  describe "that is not starred" do
65
67
  subject { ActiveGist.find(2) }
66
-
68
+
67
69
  it "check if it is not starred" do
68
70
  subject.should_not be_starred
69
71
  end
70
-
72
+
71
73
  it "check valid request" do
72
74
  subject
73
75
  expect_request :get, "/gists/2/star"
@@ -83,31 +85,31 @@ describe ActiveGist do
83
85
  end
84
86
  end
85
87
  end
86
-
88
+
87
89
  describe "destroying it" do
88
90
  subject { ActiveGist.find 1 }
89
-
91
+
90
92
  it "should destroy properly" do
91
93
  subject.destroy
92
94
  subject.should_not be_persisted
93
95
  subject.should_not be_new_record
94
96
  subject.should be_destroyed
95
97
  end
96
-
98
+
97
99
  it "should send correct request" do
98
100
  subject
99
101
  expect_request :delete, "gists/1"
100
102
  subject.destroy
101
103
  end
102
104
  end
103
-
105
+
104
106
  describe "forking it" do
105
107
  subject { ActiveGist.find 1 }
106
-
108
+
107
109
  it "should return the forked gist" do
108
110
  subject.fork.should_not == subject
109
111
  end
110
-
112
+
111
113
  it "should send the correct request" do
112
114
  subject
113
115
  expect_request :post, "/gists/1/fork", ""
@@ -115,49 +117,49 @@ describe ActiveGist do
115
117
  end
116
118
  end
117
119
  end
118
-
120
+
119
121
  describe "validation" do
120
122
  before { subject.valid? }
121
-
123
+
122
124
  it "should not validate presence of description" do
123
125
  subject.errors[:description].should_not include("can't be blank")
124
126
  end
125
-
127
+
126
128
  it "should not validate presence of public" do
127
129
  # github requires this but we're just going to default it to false
128
130
  subject.errors[:public].should_not include("can't be blank")
129
131
  end
130
-
132
+
131
133
  it "should validate presence of files" do
132
134
  subject.errors[:files].should include("can't be blank")
133
135
  end
134
136
  end
135
-
137
+
136
138
  describe "creating a valid gist with arrays and hashes" do
137
139
  subject { ActiveGist.create!(valid_attributes) }
138
-
140
+
139
141
  it "should return the new gist" do
140
142
  subject.id.should == '1'
141
143
  subject.url.should == 'https://api.github.com/gists/1'
142
144
  subject.should be_public # this would default to false but our fake response returns true
143
145
  end
144
-
146
+
145
147
  it "should be persisted" do
146
148
  subject.should be_persisted
147
149
  end
148
-
150
+
149
151
  it "should send proper request" do
150
152
  expect_request :post, "/gists", valid_attributes.merge(:description => nil, :public => false)
151
153
  subject
152
154
  end
153
155
  end
154
-
156
+
155
157
  describe 'changing just files' do
156
158
  subject { ActiveGist.find(1) }
157
159
  before { subject.files['file1.txt'][:content] = 'updated' }
158
160
  it { should_not be_persisted }
159
161
  end
160
-
162
+
161
163
  describe "changing an existing gist" do
162
164
  subject { ActiveGist.find(1) }
163
165
  before do
@@ -166,9 +168,9 @@ describe ActiveGist do
166
168
  subject.files['deleted.txt'] = nil
167
169
  subject.files['file1.txt'][:content] = "updated file contents"
168
170
  end
169
-
171
+
170
172
  it { should_not be_persisted }
171
-
173
+
172
174
  it "should send proper request to save" do
173
175
  expect_request :patch, "/gists/1", {
174
176
  :description => "updated description",
@@ -176,93 +178,93 @@ describe ActiveGist do
176
178
  }
177
179
  subject.save!
178
180
  end
179
-
181
+
180
182
  describe "saving" do
181
183
  before { subject.save! }
182
-
184
+
183
185
  it "should store the new description" do
184
186
  subject.description.should == 'returned updated description'
185
187
  end
186
-
188
+
187
189
  it "should remove the renamed file's old filename" do
188
190
  subject.files.should_not have_key('old_name.txt')
189
191
  end
190
-
192
+
191
193
  it "should add the renamed file's new filename" do
192
194
  subject.files.should have_key('new_name.txt')
193
195
  end
194
-
196
+
195
197
  it "should remove the deleted file" do
196
198
  subject.files.should_not have_key('deleted.txt')
197
199
  end
198
-
200
+
199
201
  it "should update the modified file contents" do
200
202
  subject.files['file1.txt'][:content].should == 'returned updated file contents'
201
203
  end
202
204
  end
203
205
  end
204
-
206
+
205
207
  describe "saving a valid gist" do
206
208
  subject { ActiveGist.new(valid_attributes) }
207
209
  before { subject.save }
208
-
210
+
209
211
  it '#save should return true' do
210
212
  subject.save.should be_true
211
213
  end
212
-
214
+
213
215
  it "should be persisted" do
214
216
  subject.should be_persisted
215
217
  end
216
218
  end
217
-
219
+
218
220
  describe "creating an invalid gist" do
219
221
  it "::create! should raise an error" do
220
222
  proc { ActiveGist.create! }.should raise_error
221
223
  end
222
-
224
+
223
225
  it "::create should return a record that is not persisted" do
224
226
  ActiveGist.create.should_not be_persisted
225
227
  end
226
228
  end
227
-
229
+
228
230
  describe "saving an invalid gist" do
229
231
  it '#save! should raise an error' do
230
232
  proc { ActiveGist.new.save! }.should raise_error
231
233
  end
232
-
234
+
233
235
  it '#save should return false' do
234
236
  ActiveGist.new.save.should be_false
235
237
  end
236
238
  end
237
-
239
+
238
240
  it "should have a count of all gists" do
239
241
  ActiveGist.count.should == 3
240
242
  end
241
-
243
+
242
244
  it "should have a count of public gists" do
243
245
  ActiveGist.count(:public).should == 2
244
246
  end
245
-
247
+
246
248
  it "should have a count of starred gists" do
247
249
  ActiveGist.count(:starred).should == 1
248
250
  end
249
-
251
+
250
252
  it "should return the last gist" do
251
253
  ActiveGist.last.id.should == '3'
252
254
  end
253
-
255
+
254
256
  it "should return the first gist" do
255
257
  ActiveGist.first.id.should == '1'
256
258
  end
257
-
259
+
258
260
  it "should find a gist by id" do
259
261
  ActiveGist.find(2).should == ActiveGist.all[1]
260
-
262
+
261
263
  # check request
262
264
  expect_request(:get, "/gists/2")
263
265
  ActiveGist.find(2)
264
266
  end
265
-
267
+
266
268
  describe "a gist returned by github" do
267
269
  subject { ActiveGist.first }
268
270
  it { should respond_to(:url) }
@@ -272,24 +274,30 @@ describe ActiveGist do
272
274
  it { should respond_to(:user) }
273
275
  it { should respond_to(:files) }
274
276
  it { should respond_to(:comments) }
277
+ it { should respond_to(:comments_url) }
278
+ it { should respond_to(:created_at) }
279
+ it { should respond_to(:forks) }
280
+ it { should respond_to(:forks_url) }
281
+ it { should respond_to(:history) }
282
+ it { should respond_to(:updated_at) }
275
283
  it { should respond_to(:html_url) }
276
284
  it { should respond_to(:git_pull_url) }
277
285
  it { should respond_to(:git_push_url) }
278
- it { should respond_to(:created_at) }
286
+ it { should respond_to(:commits_url) }
279
287
  it { should be_persisted }
280
288
  end
281
-
289
+
282
290
  describe "fetching all gists" do
283
291
  subject { ActiveGist.all }
284
-
292
+
285
293
  it { should have(3).gists }
286
-
294
+
287
295
  it "should request the gist properly" do
288
296
  expect_request(:get, "/gists", nil, {:accept => 'application/json'}, [])
289
297
  subject
290
298
  end
291
299
  end
292
-
300
+
293
301
  describe "active model lint tests" do
294
302
  include Test::Unit::Assertions
295
303
  include ActiveModel::Lint::Tests
@@ -1,3 +1,6 @@
1
+ require 'coveralls'
2
+ Coveralls.wear!
3
+
1
4
  $:.unshift File.expand_path('../lib', File.dirname(__FILE__))
2
5
 
3
6
  require 'active_gist'
@@ -4,7 +4,11 @@ def json(name)
4
4
  File.read(File.expand_path("../fixtures/#{name}.json", File.dirname(__FILE__)))
5
5
  end
6
6
 
7
- FakeWeb.allow_net_connect = false
7
+ RSpec.configure do |c|
8
+ c.before { FakeWeb.allow_net_connect = false }
9
+ c.after { FakeWeb.allow_net_connect = true }
10
+ end
11
+
8
12
  FakeWeb.register_uri(:get, 'https://username:password@api.github.com/gists', :response => json('all_gists'))
9
13
  FakeWeb.register_uri(:get, 'https://username:password@api.github.com/gists/public', :response => json('public_gists'))
10
14
  FakeWeb.register_uri(:get, 'https://username:password@api.github.com/gists/starred', :response => json('starred_gists'))
metadata CHANGED
@@ -1,68 +1,60 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activegist
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
5
- prerelease:
4
+ version: 0.7.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Colin MacKenzie IV
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-11-01 00:00:00.000000000 Z
11
+ date: 2013-11-05 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rspec
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
21
- version: 2.8.0
19
+ version: '2.8'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
29
- version: 2.8.0
26
+ version: '2.8'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: fakeweb
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ~>
36
32
  - !ruby/object:Gem::Version
37
- version: 1.3.0
33
+ version: '1.3'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ~>
44
39
  - !ruby/object:Gem::Version
45
- version: 1.3.0
40
+ version: '1.3'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rake
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ~>
52
46
  - !ruby/object:Gem::Version
53
- version: 0.9.2.2
47
+ version: '0.9'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ~>
60
53
  - !ruby/object:Gem::Version
61
- version: 0.9.2.2
54
+ version: '0.9'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rdoc
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ~>
68
60
  - !ruby/object:Gem::Version
@@ -70,59 +62,66 @@ dependencies:
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ~>
76
67
  - !ruby/object:Gem::Version
77
68
  version: '3.12'
69
+ - !ruby/object:Gem::Dependency
70
+ name: coveralls
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
78
83
  - !ruby/object:Gem::Dependency
79
84
  name: activemodel
80
85
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
86
  requirements:
83
87
  - - ~>
84
88
  - !ruby/object:Gem::Version
85
- version: '3.1'
89
+ version: '4'
86
90
  type: :runtime
87
91
  prerelease: false
88
92
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
93
  requirements:
91
94
  - - ~>
92
95
  - !ruby/object:Gem::Version
93
- version: '3.1'
96
+ version: '4'
94
97
  - !ruby/object:Gem::Dependency
95
98
  name: activesupport
96
99
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
100
  requirements:
99
101
  - - ~>
100
102
  - !ruby/object:Gem::Version
101
- version: '3.1'
103
+ version: '4'
102
104
  type: :runtime
103
105
  prerelease: false
104
106
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
107
  requirements:
107
108
  - - ~>
108
109
  - !ruby/object:Gem::Version
109
- version: '3.1'
110
+ version: '4'
110
111
  - !ruby/object:Gem::Dependency
111
112
  name: rest-client
112
113
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
114
  requirements:
115
115
  - - ~>
116
116
  - !ruby/object:Gem::Version
117
- version: 1.6.7
117
+ version: '1.6'
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
121
  requirements:
123
122
  - - ~>
124
123
  - !ruby/object:Gem::Version
125
- version: 1.6.7
124
+ version: '1.6'
126
125
  description: Wraps GitHub's Gist API with a class implementing the ActiveModel modules.
127
126
  So, it should be pretty familiar to anyone who's ever used models in Ruby on Rails.
128
127
  email:
@@ -167,33 +166,26 @@ files:
167
166
  - spec/support/fakeweb.rb
168
167
  homepage: http://github.com/sinisterchipmunk/active-gist
169
168
  licenses: []
169
+ metadata: {}
170
170
  post_install_message:
171
171
  rdoc_options: []
172
172
  require_paths:
173
173
  - lib
174
174
  required_ruby_version: !ruby/object:Gem::Requirement
175
- none: false
176
175
  requirements:
177
- - - ! '>='
176
+ - - '>='
178
177
  - !ruby/object:Gem::Version
179
178
  version: '0'
180
- segments:
181
- - 0
182
- hash: -3826366150870984350
183
179
  required_rubygems_version: !ruby/object:Gem::Requirement
184
- none: false
185
180
  requirements:
186
- - - ! '>='
181
+ - - '>='
187
182
  - !ruby/object:Gem::Version
188
183
  version: '0'
189
- segments:
190
- - 0
191
- hash: -3826366150870984350
192
184
  requirements: []
193
185
  rubyforge_project: activegist
194
- rubygems_version: 1.8.24
186
+ rubygems_version: 2.0.3
195
187
  signing_key:
196
- specification_version: 3
188
+ specification_version: 4
197
189
  summary: Wraps GitHub's Gist API with an intuitive class based on ActiveModel.
198
190
  test_files:
199
191
  - spec/fixtures/all_gists.json