stormpath-rails 0.4.4 → 1.0.0.beta

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,21 +3,23 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
  require 'stormpath/rails/version'
4
4
 
5
5
  Gem::Specification.new do |gem|
6
- gem.name = "stormpath-rails"
6
+ gem.name = 'stormpath-rails'
7
7
  gem.version = Stormpath::Rails::VERSION
8
- gem.authors = ["Denis Grankin"]
9
- gem.email = ["liquidautumn@gmail.com"]
10
- gem.homepage = "http://www.stormpath.com"
8
+ gem.date = Stormpath::Rails::VERSION_DATE
9
+ gem.authors = ['Denis Grankin']
10
+ gem.email = ['liquidautumn@gmail.com']
11
+ gem.homepage = 'http://www.stormpath.com'
11
12
  gem.description = %q{Stormpath Rails integration}
12
13
  gem.summary = %q{Stormpath SDK API Wrapper}
13
14
 
14
- gem.add_dependency "activesupport"
15
- gem.add_dependency "stormpath-sdk", '~> 0.4.0'
15
+ gem.add_dependency 'activesupport'
16
+ gem.add_dependency 'stormpath-sdk', '1.0.0.beta'
16
17
 
17
18
  gem.files = `git ls-files`.split($/)
18
19
  gem.test_files = gem.files.grep(%r{^(spec|features)/})
19
- gem.require_paths = ["lib"]
20
+ gem.require_paths = ['lib']
20
21
 
22
+ gem.add_development_dependency('rails', '~> 3.2.13')
21
23
  gem.add_development_dependency('rake', '~> 10.0.2')
22
24
  gem.add_development_dependency('rspec', '~> 2.12.0')
23
25
  gem.add_development_dependency('generator_spec')
@@ -26,5 +28,9 @@ Gem::Specification.new do |gem|
26
28
  gem.add_development_dependency('mongoid')
27
29
  gem.add_development_dependency('railties')
28
30
  gem.add_development_dependency('guard-rspec', '~> 2.2.1')
29
- gem.add_development_dependency('rb-inotify', '~> 0.8.8')
31
+ gem.add_development_dependency('simplecov', '~> 0.7.1')
32
+ gem.add_development_dependency('webmock')
33
+ gem.add_development_dependency('vcr')
34
+ gem.add_development_dependency('pry')
35
+ gem.add_development_dependency('pry-debugger')
30
36
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stormpath-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
5
- prerelease:
4
+ version: 1.0.0.beta
5
+ prerelease: 6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Denis Grankin
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-14 00:00:00.000000000 Z
12
+ date: 2013-06-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -32,17 +32,33 @@ dependencies:
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  none: false
34
34
  requirements:
35
- - - ~>
35
+ - - '='
36
36
  - !ruby/object:Gem::Version
37
- version: 0.4.0
37
+ version: 1.0.0.beta
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - '='
44
+ - !ruby/object:Gem::Version
45
+ version: 1.0.0.beta
46
+ - !ruby/object:Gem::Dependency
47
+ name: rails
48
+ requirement: !ruby/object:Gem::Requirement
41
49
  none: false
42
50
  requirements:
43
51
  - - ~>
44
52
  - !ruby/object:Gem::Version
45
- version: 0.4.0
53
+ version: 3.2.13
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 3.2.13
46
62
  - !ruby/object:Gem::Dependency
47
63
  name: rake
48
64
  requirement: !ruby/object:Gem::Requirement
@@ -172,13 +188,13 @@ dependencies:
172
188
  - !ruby/object:Gem::Version
173
189
  version: 2.2.1
174
190
  - !ruby/object:Gem::Dependency
175
- name: rb-inotify
191
+ name: simplecov
176
192
  requirement: !ruby/object:Gem::Requirement
177
193
  none: false
178
194
  requirements:
179
195
  - - ~>
180
196
  - !ruby/object:Gem::Version
181
- version: 0.8.8
197
+ version: 0.7.1
182
198
  type: :development
183
199
  prerelease: false
184
200
  version_requirements: !ruby/object:Gem::Requirement
@@ -186,7 +202,71 @@ dependencies:
186
202
  requirements:
187
203
  - - ~>
188
204
  - !ruby/object:Gem::Version
189
- version: 0.8.8
205
+ version: 0.7.1
206
+ - !ruby/object:Gem::Dependency
207
+ name: webmock
208
+ requirement: !ruby/object:Gem::Requirement
209
+ none: false
210
+ requirements:
211
+ - - ! '>='
212
+ - !ruby/object:Gem::Version
213
+ version: '0'
214
+ type: :development
215
+ prerelease: false
216
+ version_requirements: !ruby/object:Gem::Requirement
217
+ none: false
218
+ requirements:
219
+ - - ! '>='
220
+ - !ruby/object:Gem::Version
221
+ version: '0'
222
+ - !ruby/object:Gem::Dependency
223
+ name: vcr
224
+ requirement: !ruby/object:Gem::Requirement
225
+ none: false
226
+ requirements:
227
+ - - ! '>='
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ none: false
234
+ requirements:
235
+ - - ! '>='
236
+ - !ruby/object:Gem::Version
237
+ version: '0'
238
+ - !ruby/object:Gem::Dependency
239
+ name: pry
240
+ requirement: !ruby/object:Gem::Requirement
241
+ none: false
242
+ requirements:
243
+ - - ! '>='
244
+ - !ruby/object:Gem::Version
245
+ version: '0'
246
+ type: :development
247
+ prerelease: false
248
+ version_requirements: !ruby/object:Gem::Requirement
249
+ none: false
250
+ requirements:
251
+ - - ! '>='
252
+ - !ruby/object:Gem::Version
253
+ version: '0'
254
+ - !ruby/object:Gem::Dependency
255
+ name: pry-debugger
256
+ requirement: !ruby/object:Gem::Requirement
257
+ none: false
258
+ requirements:
259
+ - - ! '>='
260
+ - !ruby/object:Gem::Version
261
+ version: '0'
262
+ type: :development
263
+ prerelease: false
264
+ version_requirements: !ruby/object:Gem::Requirement
265
+ none: false
266
+ requirements:
267
+ - - ! '>='
268
+ - !ruby/object:Gem::Version
269
+ version: '0'
190
270
  description: Stormpath Rails integration
191
271
  email:
192
272
  - liquidautumn@gmail.com
@@ -196,29 +276,27 @@ extra_rdoc_files: []
196
276
  files:
197
277
  - .gitignore
198
278
  - .rspec
279
+ - .ruby-gemset
280
+ - .ruby-version
199
281
  - .travis.yml
282
+ - CHANGES.md
200
283
  - Gemfile
201
284
  - Guardfile
202
285
  - LICENSE.txt
203
286
  - README.md
204
287
  - Rakefile
205
- - lib/generators/stormpath/rails/install/install_generator.rb
206
288
  - lib/generators/stormpath/rails/migration/migration_generator.rb
207
- - lib/generators/stormpath/rails/templates/stormpath.yml
208
289
  - lib/generators/stormpath/rails/templates/update_account_model.rb
209
290
  - lib/stormpath-rails.rb
210
291
  - lib/stormpath/rails/account.rb
211
292
  - lib/stormpath/rails/client.rb
212
- - lib/stormpath/rails/config.rb
293
+ - lib/stormpath/rails/railtie.rb
213
294
  - lib/stormpath/rails/version.rb
214
- - spec/fixtures/config/stormpath.yml
215
- - spec/generators/install_generator_spec.rb
295
+ - spec/client_spec.rb
216
296
  - spec/generators/migration_generator_spec.rb
217
297
  - spec/integration/active_record_spec.rb
218
298
  - spec/integration/mongoid_spec.rb
219
299
  - spec/spec_helper.rb
220
- - spec/stormpath/rails/config_spec.rb
221
- - spec/support/rails.rb
222
300
  - spec/support/stormpath_account_shared_examples.rb
223
301
  - stormpath-rails.gemspec
224
302
  homepage: http://www.stormpath.com
@@ -236,22 +314,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
236
314
  required_rubygems_version: !ruby/object:Gem::Requirement
237
315
  none: false
238
316
  requirements:
239
- - - ! '>='
317
+ - - ! '>'
240
318
  - !ruby/object:Gem::Version
241
- version: '0'
319
+ version: 1.3.1
242
320
  requirements: []
243
321
  rubyforge_project:
244
- rubygems_version: 1.8.24
322
+ rubygems_version: 1.8.25
245
323
  signing_key:
246
324
  specification_version: 3
247
325
  summary: Stormpath SDK API Wrapper
248
326
  test_files:
249
- - spec/fixtures/config/stormpath.yml
250
- - spec/generators/install_generator_spec.rb
327
+ - spec/client_spec.rb
251
328
  - spec/generators/migration_generator_spec.rb
252
329
  - spec/integration/active_record_spec.rb
253
330
  - spec/integration/mongoid_spec.rb
254
331
  - spec/spec_helper.rb
255
- - spec/stormpath/rails/config_spec.rb
256
- - spec/support/rails.rb
257
332
  - spec/support/stormpath_account_shared_examples.rb
@@ -1,13 +0,0 @@
1
- module Stormpath
2
- module Rails
3
- module Generators
4
- class InstallGenerator < ::Rails::Generators::Base
5
- source_root File.expand_path('../../templates', __FILE__)
6
-
7
- def create_initializer_file
8
- template "stormpath.yml", "config/stormpath.yml"
9
- end
10
- end
11
- end
12
- end
13
- end
@@ -1,11 +0,0 @@
1
- common:
2
- stormpath_url: <%%= ENV['STORMPATH_URL'] %>
3
-
4
- development:
5
- root: https://api.stormpath.com/v1/directories/<root directory id>
6
-
7
- test:
8
- root: https://api.stormpath.com/v1/directories/<root directory id>
9
-
10
- production:
11
- root: https://api.stormpath.com/v1/directories/<root directory id>
@@ -1,14 +0,0 @@
1
- module Stormpath
2
- module Rails
3
- class Config
4
- class << self
5
- attr_accessor :vars
6
- end
7
-
8
- def self.[](name)
9
- self.vars ||= YAML.load(ERB.new(File.read("#{::Rails.root}/config/stormpath.yml")).result)
10
- self.vars["common"].update(self.vars[::Rails.env])[name.to_s]
11
- end
12
- end
13
- end
14
- end
@@ -1,12 +0,0 @@
1
- common:
2
- href: stormpath_url
3
- application: application_url
4
-
5
- development:
6
- root: development_root
7
-
8
- test:
9
- root: test_root
10
-
11
- production:
12
- root: production_root
@@ -1,17 +0,0 @@
1
- require "active_support/core_ext/class/attribute_accessors"
2
- require "generator_spec/test_case"
3
- require "generators/stormpath/rails/install/install_generator"
4
-
5
- describe Stormpath::Rails::Generators::InstallGenerator do
6
- include GeneratorSpec::TestCase
7
- destination File.expand_path("../tmp", __FILE__)
8
-
9
- before(:all) do
10
- prepare_destination
11
- run_generator
12
- end
13
-
14
- it "creates configuration file" do
15
- assert_file "config/stormpath.yml", "common:\n stormpath_url: <%= ENV['STORMPATH_URL'] %>\n\ndevelopment:\n root: https://api.stormpath.com/v1/directories/<root directory id>\n\ntest:\n root: https://api.stormpath.com/v1/directories/<root directory id>\n\nproduction:\n root: https://api.stormpath.com/v1/directories/<root directory id>\n"
16
- end
17
- end
@@ -1,41 +0,0 @@
1
- require 'spec_helper'
2
- require 'stormpath/rails/config'
3
-
4
- describe Stormpath::Rails::Config do
5
- before(:each) do
6
- Rails.stub!(:root).and_return(File.join File.dirname(__FILE__), "..", "..", "fixtures")
7
- Rails.stub!(:env).and_return("test")
8
- end
9
-
10
- context "file IO" do
11
- let(:path) { "#{Rails.root}/config/stormpath.yml" }
12
-
13
- before(:each) do
14
- described_class.vars = nil
15
- end
16
-
17
- it "should read yaml from rails app config/stormpath.yml" do
18
- File.should_receive(:read).with(path).and_call_original
19
- described_class[:href].should == 'stormpath_url'
20
- end
21
-
22
- it "should not re-red yaml once loaded" do
23
- File.should_receive(:read).with(path).and_call_original
24
- described_class[:href].should == 'stormpath_url'
25
- described_class[:href].should == 'stormpath_url'
26
- end
27
- end
28
-
29
- %w{test development production}.each do |environment|
30
- it "should read root directory from #{environment} yaml section" do
31
- Rails.stub!(:env).and_return(environment)
32
- described_class[:root].should == "#{environment}_root"
33
- end
34
-
35
- it "should mix shared vars to #{environment} env" do
36
- Rails.stub!(:env).and_return(environment)
37
- described_class[:href].should == 'stormpath_url'
38
- described_class[:application].should == 'application_url'
39
- end
40
- end
41
- end
@@ -1,6 +0,0 @@
1
- module Rails
2
- module Generators
3
- class Base
4
- end
5
- end
6
- end