agilib 0.1.2.beta3 → 0.1.2.beta4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eae783f8900dd689879332bfb3d78dcddae1ff61
4
- data.tar.gz: 56f13fc79a96b69461acbe4494469054276d0df4
3
+ metadata.gz: 6375eacb1c8593449f94c87b52bb74660a8cbfc1
4
+ data.tar.gz: 425eb4ca405e5df252352d23d89d56e48ce8fdd7
5
5
  SHA512:
6
- metadata.gz: bd147c6b22202b72a40e4a33818c93c912fdd7020f61e00258b684dfd70e71b5249a76a7966521a4a7e3a692279eca18d9869eaebc3183832a79ec0644b618fb
7
- data.tar.gz: 4ff554db8d3d5f3b4b7955a6886a382da19c0418a66f885adbaa1e820428c8dab85765b8831b0d01446aedd478d062acab1212f2b4802754bbaae5b538d2f6cd
6
+ metadata.gz: dd0172bc09dbaf7a1c1b3170b0c2515f288688d762909324eaae942fadb5f87afca37d88b3e4ed0783b2aa9beb286756a3ba467ccdc57769ff03e52f401caf88
7
+ data.tar.gz: db2878a3876c1700a36258fea50dbc5b6aac2b805b55585847c85cba8abba408abd06e947dd9558d5258ee0e7df7915b3e5f51f156100c16d369c83bb64b283d
@@ -0,0 +1,6 @@
1
+
2
+
3
+ templater.post_bundler do
4
+ rake 'db:migrate'
5
+ rake 'docs:generate'
6
+ end
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  gem 'rspec-rails', :group => [:development, :test]
2
4
  gem 'factory_girl_rails', :group => [:development, :test]
3
5
  gem "database_cleaner", :group => :test
@@ -124,8 +126,11 @@ SimpleCov.start
124
126
  say("\nConfigurando Testes para User...\n", :green)
125
127
 
126
128
  remove_file "spec/models/user_spec.rb"
129
+ create_file "spec/factories/users.rb", templater.load_snippet('users_factory','rspec')
127
130
  create_file "spec/models/user_spec.rb", templater.load_snippet('user_model_spec','rspec')
128
131
 
132
+
133
+
129
134
  ## ===============================================================
130
135
  ## RSPEC API DOCUMENTATION
131
136
  ## ===============================================================
@@ -146,7 +151,6 @@ end
146
151
  create_file "spec/acceptance/users_spec.rb", templater.load_snippet('users_acceptance_spec','rspec')
147
152
  create_file "spec/acceptance/tokens_spec.rb", templater.load_snippet('tokens_acceptance_spec','rspec')
148
153
 
149
- generate 'docs:generate'
150
154
 
151
155
  ## ===============================================================
152
156
  ## USER SPECS
@@ -4,7 +4,7 @@ require File.join(File.expand_path('./../../../../', __FILE__), 'agilib.rb')
4
4
  require 'composer'
5
5
  require File.join(File.dirname(__FILE__), 'core_ext.rb')
6
6
 
7
- %w(default gems responders simple_form bootstrap devise token push rspec cancan better_errors).each do |recipe|
7
+ %w(default gems responders simple_form bootstrap rspec devise token push cancan better_errors finalize).each do |recipe|
8
8
  apply templater.recipe(recipe)
9
9
  end
10
10
 
@@ -0,0 +1,13 @@
1
+ FactoryGirl.define do
2
+ factory :user do
3
+ name 'Test User'
4
+ email 'example@example.com'
5
+ password 'changeme'
6
+ password_confirmation 'changeme'
7
+ authentication_token ""
8
+ end
9
+
10
+ factory :user_without_name, :parent => :user do
11
+ name nil
12
+ end
13
+ end
@@ -3,7 +3,7 @@ module Agilib
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
5
  PATCH = 2
6
- BUILD = 'beta3'
6
+ BUILD = 'beta4'
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
9
9
  end
@@ -42,7 +42,7 @@ Agilib.setup do |config|
42
42
  #
43
43
  # Default: {:user_token => :user_token, :user_email => :user_email}
44
44
  #
45
- options.auth_params = {:user_token => :user_token, :user_email => :user_email}
45
+ options.auth_params = {:user_token => :auth_token, :user_email => :auth_email}
46
46
 
47
47
  # ===============================================================================
48
48
  # Define quais parâmetros serão passados para solicitar o token
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: agilib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2.beta3
4
+ version: 0.1.2.beta4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcos Junior
@@ -195,6 +195,7 @@ files:
195
195
  - lib/agilib/composer/templates/recipes/cancan.rb
196
196
  - lib/agilib/composer/templates/recipes/default.rb
197
197
  - lib/agilib/composer/templates/recipes/devise.rb
198
+ - lib/agilib/composer/templates/recipes/finalize.rb
198
199
  - lib/agilib/composer/templates/recipes/gems.rb
199
200
  - lib/agilib/composer/templates/recipes/push.rb
200
201
  - lib/agilib/composer/templates/recipes/responders.rb
@@ -205,6 +206,7 @@ files:
205
206
  - lib/agilib/composer/templates/snippets/rspec/tokens_acceptance_spec.rb
206
207
  - lib/agilib/composer/templates/snippets/rspec/user_model_spec.rb
207
208
  - lib/agilib/composer/templates/snippets/rspec/users_acceptance_spec.rb
209
+ - lib/agilib/composer/templates/snippets/rspec/users_factory.rb
208
210
  - lib/agilib/engine.rb
209
211
  - lib/agilib/push_notification/model.rb
210
212
  - lib/agilib/push_notification/platforms/android.rb