rails_default_url_options 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MWE2OTMwOWNhOTk5OWM5MDdlODU2Nzg2NjdiNjhlNDU5MTlkNDU3YQ==
5
+ data.tar.gz: !binary |-
6
+ MzQwYzA2NTBiZjJjY2QxNjUzMTIwNjU5MDRmNzQ0MmQyNGM2ZTc2Yg==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ Yzg0YjQ1NzI4ODBiOWMwYzY4Y2QxNzNiZjBkMzRiZWU4MTc1YmQ3YjA1ZmZk
10
+ MTZlODhiZTA2MmEzZDJhODg1Yjg0Mjg2MjA5ZmJlYTM3YjRiZDRmNjFmOWRh
11
+ MzY2YTA4MTBlMGNlZDkzZWYyNGQzZThlYThhY2NlNDJkMjBlYjc=
12
+ data.tar.gz: !binary |-
13
+ NDFiYjQ3NzhiZjIxZTE3M2Y1ZTFmYWRjZGQwMjVmZDE3ZDM1MmExZDI3MGM2
14
+ Yzc4NzU1NmM0ZDg3MWYxMjEzOGQzMjc4MDAwMGMzYjI4YjFjNTlmNTE0MWRj
15
+ YWNjYzZjNzIyYjhjZmZkNDNhMjY3MDQ3NzE3NWM5NGExYTBjM2M=
data/Rakefile CHANGED
@@ -59,8 +59,8 @@ end
59
59
 
60
60
  task :gemspec do
61
61
  ignore_extensions = ['git', 'svn', 'tmp', /sw./, 'bak', 'gem']
62
- ignore_directories = ['pkg']
63
- ignore_files = ['test/log', 'a.rb'] + Dir['db/*'] + %w'db'
62
+ ignore_directories = ['pkg', 'db']
63
+ ignore_files = ['test/log', 'test/db.yml', 'a.rb', 'b.rb'] + Dir['db/*'] + %w'db'
64
64
 
65
65
  shiteless =
66
66
  lambda do |list|
@@ -90,6 +90,7 @@ task :gemspec do
90
90
  test_files = test(?e, "test/#{ lib }.rb") ? "test/#{ lib }.rb" : nil
91
91
  summary = object.respond_to?(:summary) ? object.summary : "summary: #{ lib } kicks the ass"
92
92
  description = object.respond_to?(:description) ? object.description : "description: #{ lib } kicks the ass"
93
+ license = object.respond_to?(:license) ? object.license : "same as ruby's"
93
94
 
94
95
  if This.extensions.nil?
95
96
  This.extensions = []
@@ -127,6 +128,7 @@ task :gemspec do
127
128
  spec.platform = Gem::Platform::RUBY
128
129
  spec.summary = <%= lib.inspect %>
129
130
  spec.description = <%= description.inspect %>
131
+ spec.license = <%= license.inspect %>
130
132
 
131
133
  spec.files =\n<%= files.sort.pretty_inspect %>
132
134
  spec.executables = <%= executables.inspect %>
@@ -293,7 +295,7 @@ BEGIN {
293
295
 
294
296
  # discover full path to this ruby executable
295
297
  #
296
- c = RbConfig::CONFIG
298
+ c = Config::CONFIG
297
299
  bindir = c["bindir"] || c['BINDIR']
298
300
  ruby_install_name = c['ruby_install_name'] || c['RUBY_INSTALL_NAME'] || 'ruby'
299
301
  ruby_ext = c['EXEEXT'] || ''
@@ -31,7 +31,7 @@ unless defined?(DefaultUrlOptions)
31
31
  DefaultUrlOptions = Hash.new
32
32
 
33
33
  def DefaultUrlOptions.version
34
- '2.0.0'
34
+ '2.1.0'
35
35
  end
36
36
 
37
37
  def DefaultUrlOptions.dependencies
@@ -154,7 +154,12 @@ if defined?(Rails)
154
154
  unless controller.respond_to?(:configure_default_url_options!)
155
155
  unless DefaultUrlOptions.configured?
156
156
  request = controller.send(:request)
157
- DefaultUrlOptions.configure!(request)
157
+
158
+ if Rails.env.production?
159
+ DefaultUrlOptions.configure!(request)
160
+ else
161
+ DefaultUrlOptions.configure(request)
162
+ end
158
163
  end
159
164
  end
160
165
  end
@@ -3,10 +3,11 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "rails_default_url_options"
6
- spec.version = "2.0.0"
6
+ spec.version = "2.1.0"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "rails_default_url_options"
9
9
  spec.description = "description: rails_default_url_options kicks the ass"
10
+ spec.license = "same as ruby's"
10
11
 
11
12
  spec.files =
12
13
  ["README.md",
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_default_url_options
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
5
- prerelease:
4
+ version: 2.1.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Ara T. Howard
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-04-10 00:00:00.000000000 Z
11
+ date: 2013-12-12 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: ! 'description: rails_default_url_options kicks the ass'
15
14
  email: ara.t.howard@gmail.com
@@ -22,28 +21,27 @@ files:
22
21
  - lib/rails_default_url_options.rb
23
22
  - rails_default_url_options.gemspec
24
23
  homepage: https://github.com/ahoward/rails_default_url_options
25
- licenses: []
24
+ licenses:
25
+ - same as ruby's
26
+ metadata: {}
26
27
  post_install_message:
27
28
  rdoc_options: []
28
29
  require_paths:
29
30
  - lib
30
31
  required_ruby_version: !ruby/object:Gem::Requirement
31
- none: false
32
32
  requirements:
33
33
  - - ! '>='
34
34
  - !ruby/object:Gem::Version
35
35
  version: '0'
36
36
  required_rubygems_version: !ruby/object:Gem::Requirement
37
- none: false
38
37
  requirements:
39
38
  - - ! '>='
40
39
  - !ruby/object:Gem::Version
41
40
  version: '0'
42
41
  requirements: []
43
42
  rubyforge_project: codeforpeople
44
- rubygems_version: 1.8.23
43
+ rubygems_version: 2.0.3
45
44
  signing_key:
46
- specification_version: 3
45
+ specification_version: 4
47
46
  summary: rails_default_url_options
48
47
  test_files: []
49
- has_rdoc: