stormpath-rails 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -4,6 +4,7 @@
4
4
  .idea
5
5
  .config
6
6
  .yardoc
7
+ .rvmrc
7
8
  Gemfile.lock
8
9
  InstalledFiles
9
10
  _yardoc
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format progress
data/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ gemfile:
5
+ - Gemfile
6
+ script: bundle exec rake
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Stormpath::Rails
2
2
 
3
+ [![Build Status](https://secure.travis-ci.org/stormpath/stormpath-rails.png)](http://travis-ci.org/stormpath/stormpath-rails)
4
+
3
5
  Ruby on Rails support for Stormpath
4
6
 
5
7
  ## Usage
data/Rakefile CHANGED
@@ -1 +1,7 @@
1
1
  require "bundler/gem_tasks"
2
+
3
+ require 'rspec/core/rake_task'
4
+
5
+ RSpec::Core::RakeTask.new(:spec)
6
+
7
+ task :default => :spec
@@ -1,7 +1,7 @@
1
1
  module Stormpath
2
2
  module Rails
3
3
  module Generators
4
- class ConfigGenerator < ::Rails::Generators::Base
4
+ class InstallGenerator < ::Rails::Generators::Base
5
5
  def create_initializer_file
6
6
  create_file "config/stormpath.yml", "common:
7
7
  href: <%= ENV['STORMPATH_URL'] %>
@@ -1,5 +1,5 @@
1
1
  module Stormpath
2
2
  module Rails
3
- VERSION = "0.3.2"
3
+ VERSION = "0.3.3"
4
4
  end
5
5
  end
@@ -0,0 +1,18 @@
1
+ require "spec_helper"
2
+
3
+ module Rails
4
+ module Generators
5
+ class Base
6
+ end
7
+ end
8
+ end
9
+
10
+ require "generators/stormpath/rails/install/install_generator"
11
+
12
+ describe Stormpath::Rails::Generators::InstallGenerator do
13
+
14
+ it "creates a configuration file" do
15
+ subject.should_receive(:create_file).with("config/stormpath.yml", kind_of(String))
16
+ subject.create_initializer_file
17
+ end
18
+ end
@@ -0,0 +1,17 @@
1
+ # This file was generated by the `rspec --init` command. Conventionally, all
2
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
+ # Require this file using `require "spec_helper"` to ensure that it is only
4
+ # loaded once.
5
+ #
6
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
7
+ RSpec.configure do |config|
8
+ config.treat_symbols_as_metadata_keys_with_true_values = true
9
+ config.run_all_when_everything_filtered = true
10
+ config.filter_run :focus
11
+
12
+ # Run specs in random order to surface order dependencies. If you find an
13
+ # order dependency and want to debug it, you can fix the order by providing
14
+ # the seed, which is printed after each run.
15
+ # --seed 1234
16
+ config.order = 'random'
17
+ end
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  lib = File.expand_path('../lib', __FILE__)
3
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
3
  require 'stormpath/rails/version'
@@ -8,6 +7,7 @@ Gem::Specification.new do |gem|
8
7
  gem.version = Stormpath::Rails::VERSION
9
8
  gem.authors = ["Denis Grankin"]
10
9
  gem.email = ["liquidautumn@gmail.com"]
10
+ gem.homepage = "http://stormpath.com"
11
11
  gem.description = %q{Stormpath Rails integration}
12
12
  gem.summary = %q{Stormpath SDK API Wrapper}
13
13
 
@@ -15,6 +15,12 @@ Gem::Specification.new do |gem|
15
15
  gem.add_dependency "stormpath-sdk"
16
16
 
17
17
  gem.files = `git ls-files`.split($/)
18
- gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
+ gem.test_files = gem.files.grep(%r{^(spec|features)/})
19
19
  gem.require_paths = ["lib"]
20
+
21
+ gem.add_development_dependency('rake', '~> 10.0.2')
22
+ gem.add_development_dependency('rspec', '~> 2.12.0')
23
+ gem.add_development_dependency('generator_spec')
24
+ gem.add_development_dependency('guard-rspec', '~> 2.2.1')
25
+ gem.add_development_dependency('rb-inotify', '~> 0.8.8')
20
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stormpath-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-25 00:00:00.000000000 Z
12
+ date: 2012-12-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -43,6 +43,86 @@ dependencies:
43
43
  - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
45
  version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: rake
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: 10.0.2
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: 10.0.2
62
+ - !ruby/object:Gem::Dependency
63
+ name: rspec
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: 2.12.0
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: 2.12.0
78
+ - !ruby/object:Gem::Dependency
79
+ name: generator_spec
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ - !ruby/object:Gem::Dependency
95
+ name: guard-rspec
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ~>
100
+ - !ruby/object:Gem::Version
101
+ version: 2.2.1
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: 2.2.1
110
+ - !ruby/object:Gem::Dependency
111
+ name: rb-inotify
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ~>
116
+ - !ruby/object:Gem::Version
117
+ version: 0.8.8
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ~>
124
+ - !ruby/object:Gem::Version
125
+ version: 0.8.8
46
126
  description: Stormpath Rails integration
47
127
  email:
48
128
  - liquidautumn@gmail.com
@@ -51,17 +131,21 @@ extensions: []
51
131
  extra_rdoc_files: []
52
132
  files:
53
133
  - .gitignore
134
+ - .rspec
135
+ - .travis.yml
54
136
  - Gemfile
55
137
  - LICENSE.txt
56
138
  - README.md
57
139
  - Rakefile
58
- - lib/generators/stormpath/rails/config/config_generator.rb
140
+ - lib/generators/stormpath/rails/install/install_generator.rb
59
141
  - lib/stormpath-rails.rb
60
142
  - lib/stormpath/rails/account.rb
61
143
  - lib/stormpath/rails/client.rb
62
144
  - lib/stormpath/rails/version.rb
145
+ - spec/lib/generators/stormpath/rails/install/install_generator_spec.rb
146
+ - spec/spec_helper.rb
63
147
  - stormpath-rails.gemspec
64
- homepage:
148
+ homepage: http://stormpath.com
65
149
  licenses: []
66
150
  post_install_message:
67
151
  rdoc_options: []
@@ -85,4 +169,6 @@ rubygems_version: 1.8.24
85
169
  signing_key:
86
170
  specification_version: 3
87
171
  summary: Stormpath SDK API Wrapper
88
- test_files: []
172
+ test_files:
173
+ - spec/lib/generators/stormpath/rails/install/install_generator_spec.rb
174
+ - spec/spec_helper.rb