hobo_support 2.0.1 → 2.1.0.pre1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e5d328a79decd0eb04f692f9d16e25e267fbd0b9
4
+ data.tar.gz: ca881adb529ffc99bc4166c0dcd4bc628f2edeac
5
+ SHA512:
6
+ metadata.gz: b55b8555c3a48378328ba60b7d694877b63e02cb79f67b20bbeee3109a06c8df458253afa6bf4b2daf7ca6870d08c627e52c6a41c7427587041691bf013819c3
7
+ data.tar.gz: 734fab56b44b10213fb6ce8a978b53e977b84936d100d89256254b56c967c47884f4bed504da89c462c0fbd30644580ad58a54616f543978116c3b8933251c53
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.1
1
+ 2.1.0.pre1
data/hobo_support.gemspec CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
11
11
  s.summary = 'Core Ruby extensions from the Hobo project'
12
12
  s.description = 'Core Ruby extensions from the Hobo project'
13
13
 
14
- s.add_runtime_dependency('rails', ["~> 3.2.0"])
14
+ s.add_runtime_dependency('rails', ["~> 4.0.2"])
15
15
  s.add_development_dependency('rubydoctest', [">= 0"])
16
16
 
17
17
  s.files = `git ls-files -x #{name}/* -z`.split("\0")
@@ -103,11 +103,13 @@ gem 'hobo_clean', :path => '#{dev_root}'
103
103
  gem 'hobo_clean_admin', :path => '#{dev_root}'
104
104
  gem 'hobo_jquery', :path => '#{dev_root}'
105
105
  gem 'hobo_jquery_ui', :path => '#{dev_root}'
106
+ gem 'protected_attributes'
106
107
  )
107
108
  end
108
109
  else
109
110
  file.puts %(
110
111
  gem '#{gem}', '= #{version}'
112
+ gem 'protected_attributes'
111
113
  )
112
114
  end
113
115
  if is_hobo
@@ -63,6 +63,13 @@ Note that `_?` should *always* be followed by a method call. It is not intended
63
63
  >> :foo.try.reverse
64
64
  => nil
65
65
 
66
+ HoboSupport's try was added to HoboSupport before similar functionality was added to ActiveSupport with a different signature. The ActiveSupport form also works:
67
+
68
+ >> "foo".try(:reverse)
69
+ => "oof"
70
+ >> :foo.try(:reverse)
71
+ => nil
72
+
66
73
  ### What's the difference?
67
74
 
68
75
  Use `_?` when you want to call a method but you know the receiver may be nil.
metadata CHANGED
@@ -1,36 +1,32 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hobo_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
5
- prerelease:
4
+ version: 2.1.0.pre1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Tom Locke
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-06-23 00:00:00.000000000 Z
11
+ date: 2013-12-18 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rails
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
21
- version: 3.2.0
19
+ version: 4.0.2
22
20
  type: :runtime
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: 3.2.0
26
+ version: 4.0.2
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rubydoctest
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - '>='
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
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
@@ -92,28 +87,26 @@ files:
92
87
  - test/hobosupport/xss.rdoctest
93
88
  homepage: http://hobocentral.net
94
89
  licenses: []
90
+ metadata: {}
95
91
  post_install_message:
96
92
  rdoc_options:
97
93
  - --charset=UTF-8
98
94
  require_paths:
99
95
  - lib
100
96
  required_ruby_version: !ruby/object:Gem::Requirement
101
- none: false
102
97
  requirements:
103
98
  - - '>='
104
99
  - !ruby/object:Gem::Version
105
100
  version: '0'
106
101
  required_rubygems_version: !ruby/object:Gem::Requirement
107
- none: false
108
102
  requirements:
109
103
  - - '>='
110
104
  - !ruby/object:Gem::Version
111
105
  version: 1.3.6
112
106
  requirements: []
113
107
  rubyforge_project: hobo
114
- rubygems_version: 1.8.25
108
+ rubygems_version: 2.1.11
115
109
  signing_key:
116
- specification_version: 3
110
+ specification_version: 4
117
111
  summary: Core Ruby extensions from the Hobo project
118
112
  test_files: []
119
- has_rdoc: