coercion 0.0.4 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f001ed5295af3f99e1bf4c86b3302647f70cb44f
4
+ data.tar.gz: 64e1a0c3a33686b69a5d12271a7b382e7f1c7cc2
5
+ SHA512:
6
+ metadata.gz: 81457764815847736ac353ac93ed642f340baba8a63c1ddc4343f71d56f350954b45320840da8e4a70d6e2ca08f1658992ca0b668970c3d42a830ac1cac6c22f
7
+ data.tar.gz: 7ac2e7205886f72db93f9fe7d725412626c116fe0104892d5af548f6583f8205e6b227ed478d5010e09c4fa830226c9e014e93d9a60b14a3d7368a4f626c35b0
@@ -0,0 +1,6 @@
1
+ *.swp
2
+ .bundle
3
+ .rvmrc
4
+ Gemfile.lock
5
+ bin
6
+ pkg
@@ -0,0 +1,25 @@
1
+ # Changelog
2
+
3
+ ## 0.1.0 (2013-12-03)
4
+
5
+ * Require Rails 4 ([Tyler Hunt][tylerhunt])
6
+
7
+ ## 0.0.4 (2012-03-12)
8
+
9
+ * Allow for frozen strings ([Dray Lacy][omghax])
10
+
11
+ ## 0.0.3 (2011-07-19)
12
+
13
+ * Add support for Rails 3.1 ([Tyler Hunt][tylerhunt])
14
+
15
+ ## 0.0.2 (2011-01-05)
16
+
17
+ * Check for Rails::Railtie before require ([Tyler Hunt][tylerhunt])
18
+ * Break up features into separate modules ([Tyler Hunt][tylerhunt])
19
+
20
+ ## 0.0.1 (2011-01-05)
21
+
22
+ * Initial release ([Tyler Hunt][tylerhunt])
23
+
24
+ [tylerhunt]: https://github.com/tylerhunt
25
+ [omghax]: https://github.com/omghax
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org/'
2
+
3
+ gemspec
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2008-2012 Tyler Hunt
1
+ Copyright (c) 2008-2013 Tyler Hunt
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -0,0 +1,18 @@
1
+ # Coercion
2
+
3
+ An ActiveRecord plugin to strip string values and coerce empty strings to nil
4
+ values on assignment.
5
+
6
+
7
+ ## Installation
8
+
9
+ Add the `coercion` gem to your `Gemfile`:
10
+
11
+ gem 'coercion'
12
+
13
+ Then run `bundle install` to install the gem.
14
+
15
+
16
+ ## Copyright
17
+
18
+ Copyright © 2008-2012 Tyler Hunt. See LICENSE for details.
@@ -0,0 +1 @@
1
+ require 'bundler/gem_tasks'
@@ -0,0 +1,21 @@
1
+ require './lib/coercion/version'
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = 'coercion'
5
+ spec.version = Coercion::VERSION
6
+ spec.authors = ['Tyler Hunt']
7
+ spec.summary = 'An ActiveRecord plugin to strip whitespace from strings and coerce empty strings to nil values on assignment.'
8
+ spec.homepage = 'https://github.com/tylerhunt/coercion'
9
+ spec.license = 'MIT'
10
+
11
+ spec.add_dependency 'activerecord', '~> 4.0'
12
+ spec.add_dependency 'activesupport', '~> 4.0'
13
+ spec.add_dependency 'railties', '~> 4.0'
14
+ spec.add_development_dependency 'bundler'
15
+ spec.add_development_dependency 'rake'
16
+
17
+ spec.files = `git ls-files`.split($\)
18
+ spec.executables = spec.files.grep(%r{^bin/}).map { |f| File.basename(f) }
19
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
+ spec.require_paths = ['lib']
21
+ end
@@ -1,3 +1,3 @@
1
1
  module Coercion
2
- VERSION = '0.0.4'
2
+ VERSION = '0.1.0'
3
3
  end
metadata CHANGED
@@ -1,82 +1,124 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coercion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
5
- prerelease:
4
+ version: 0.1.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Tyler Hunt
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-03-12 00:00:00.000000000Z
11
+ date: 2013-12-04 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: activerecord
16
- requirement: &70310506921560 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
21
- version: '3.0'
19
+ version: '4.0'
22
20
  type: :runtime
23
21
  prerelease: false
24
- version_requirements: *70310506921560
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '4.0'
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: activesupport
27
- requirement: &70310506921060 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
31
  - - ~>
31
32
  - !ruby/object:Gem::Version
32
- version: '3.0'
33
+ version: '4.0'
33
34
  type: :runtime
34
35
  prerelease: false
35
- version_requirements: *70310506921060
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '4.0'
36
41
  - !ruby/object:Gem::Dependency
37
42
  name: railties
38
- requirement: &70310506958460 !ruby/object:Gem::Requirement
39
- none: false
43
+ requirement: !ruby/object:Gem::Requirement
40
44
  requirements:
41
45
  - - ~>
42
46
  - !ruby/object:Gem::Version
43
- version: '3.0'
47
+ version: '4.0'
44
48
  type: :runtime
45
49
  prerelease: false
46
- version_requirements: *70310506958460
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '4.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
47
83
  description:
48
84
  email:
49
85
  executables: []
50
86
  extensions: []
51
87
  extra_rdoc_files: []
52
88
  files:
89
+ - .gitignore
90
+ - CHANGELOG.md
91
+ - Gemfile
53
92
  - LICENSE
93
+ - README.md
94
+ - Rakefile
95
+ - coercion.gemspec
96
+ - lib/coercion.rb
54
97
  - lib/coercion/railtie.rb
55
98
  - lib/coercion/version.rb
56
- - lib/coercion.rb
57
- homepage: http://github.com/tylerhunt/coercion
58
- licenses: []
99
+ homepage: https://github.com/tylerhunt/coercion
100
+ licenses:
101
+ - MIT
102
+ metadata: {}
59
103
  post_install_message:
60
104
  rdoc_options: []
61
105
  require_paths:
62
106
  - lib
63
107
  required_ruby_version: !ruby/object:Gem::Requirement
64
- none: false
65
108
  requirements:
66
- - - ! '>='
109
+ - - '>='
67
110
  - !ruby/object:Gem::Version
68
111
  version: '0'
69
112
  required_rubygems_version: !ruby/object:Gem::Requirement
70
- none: false
71
113
  requirements:
72
- - - ! '>='
114
+ - - '>='
73
115
  - !ruby/object:Gem::Version
74
116
  version: '0'
75
117
  requirements: []
76
118
  rubyforge_project:
77
- rubygems_version: 1.8.6
119
+ rubygems_version: 2.0.3
78
120
  signing_key:
79
- specification_version: 3
121
+ specification_version: 4
80
122
  summary: An ActiveRecord plugin to strip whitespace from strings and coerce empty
81
123
  strings to nil values on assignment.
82
124
  test_files: []