railhead_autoformat 0.0.2 → 0.0.3

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: d8f50c1987d1828b4a1792c7d3121e9a0837fb6d
4
+ data.tar.gz: 9647270f4ee06a10caa78918409baa6e6f51469f
5
+ SHA512:
6
+ metadata.gz: b5690343f661fd96c1dda07672446cc8e0281711478c2998dc40c9b2812c7ef56a459449ea50dc4c57aaf22e5609011337f50d792d5213ad4a1a5e3b0bb2ddff
7
+ data.tar.gz: a49003f9ba059c4340319107653a4e21d34397829db60195e80ce50268870c0c9eb0f985889edff2509e16472be0feb3c72e2fb8f684dd0f17912dd085b37eb8
data/README.rdoc CHANGED
@@ -4,20 +4,16 @@ RailheadAutoformat is a Ruby on Rails plugin that automatically cleans up input
4
4
 
5
5
  == Installation
6
6
 
7
- Installation is available as gem (recommended):
7
+ Add to your Gemfile:
8
8
 
9
9
  gem 'railhead_autoformat'
10
10
 
11
- Or as Rails plugin:
12
-
13
- $ ruby script/plugin install git://github.com/nagybence/railhead_autoformat.git
14
-
15
11
  == Usage
16
12
 
17
13
  It works fully automatically, but there is one options to modify the default behavior.
18
14
 
19
- auto_format :except => [:title]
15
+ auto_format except: [:title]
20
16
 
21
17
  == License
22
18
 
23
- Copyright (c) 2012 Bence Nagy (nagybence@tipogral.hu), released under the MIT license.
19
+ Copyright (c) 2012-2015 Bence Nagy (bence.nagy@gmail.com), released under the MIT license.
@@ -22,10 +22,11 @@ module RailheadAutoformat
22
22
 
23
23
  def auto_format(options = {})
24
24
  self.format_options = {
25
- :except => (options[:except] || [])
25
+ except: (options[:except] || [])
26
26
  }
27
27
  end
28
28
  end
29
29
  end
30
30
 
31
+
31
32
  ActiveRecord::Base.send :include, RailheadAutoformat
@@ -1,18 +1,16 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "railhead_autoformat"
3
- s.version = "0.0.2"
4
- s.date = "2012-08-15"
3
+ s.version = "0.0.3"
4
+ s.date = "2015-02-23"
5
5
  s.summary = "RailheadAutoformat is a Ruby on Rails plugin that automatically cleans up input fields."
6
- s.email = "nagybence@tipogral.hu"
6
+ s.email = "bence.nagy@gmail.com"
7
7
  s.homepage = "http://github.com/nagybence/railhead_autoformat"
8
- s.description = "RailheadAutoformat is a Ruby on Rails plugin that automatically cleans up input fields."
9
8
  s.has_rdoc = true
10
9
  s.authors = ["Bence Nagy"]
11
10
  s.files = ["MIT-LICENSE",
12
11
  "README.rdoc",
13
- "init.rb",
14
12
  "railhead_autoformat.gemspec",
15
13
  "lib/railhead_autoformat.rb"]
16
14
  s.rdoc_options = ["--main", "README.rdoc"]
17
- s.extra_rdoc_files = ["README.rdoc"]
15
+ s.license = "MIT"
18
16
  end
metadata CHANGED
@@ -1,69 +1,50 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: railhead_autoformat
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 0
8
- - 2
9
- version: 0.0.2
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.3
10
5
  platform: ruby
11
- authors:
6
+ authors:
12
7
  - Bence Nagy
13
8
  autorequire:
14
9
  bindir: bin
15
10
  cert_chain: []
16
-
17
- date: 2012-08-15 00:00:00 +02:00
18
- default_executable:
11
+ date: 2015-02-23 00:00:00.000000000 Z
19
12
  dependencies: []
20
-
21
- description: RailheadAutoformat is a Ruby on Rails plugin that automatically cleans up input fields.
22
- email: nagybence@tipogral.hu
13
+ description:
14
+ email: bence.nagy@gmail.com
23
15
  executables: []
24
-
25
16
  extensions: []
26
-
27
- extra_rdoc_files:
28
- - README.rdoc
29
- files:
17
+ extra_rdoc_files: []
18
+ files:
30
19
  - MIT-LICENSE
31
20
  - README.rdoc
32
- - init.rb
33
- - railhead_autoformat.gemspec
34
21
  - lib/railhead_autoformat.rb
35
- has_rdoc: true
22
+ - railhead_autoformat.gemspec
36
23
  homepage: http://github.com/nagybence/railhead_autoformat
37
- licenses: []
38
-
24
+ licenses:
25
+ - MIT
26
+ metadata: {}
39
27
  post_install_message:
40
- rdoc_options:
41
- - --main
28
+ rdoc_options:
29
+ - "--main"
42
30
  - README.rdoc
43
- require_paths:
31
+ require_paths:
44
32
  - lib
45
- required_ruby_version: !ruby/object:Gem::Requirement
46
- none: false
47
- requirements:
33
+ required_ruby_version: !ruby/object:Gem::Requirement
34
+ requirements:
48
35
  - - ">="
49
- - !ruby/object:Gem::Version
50
- segments:
51
- - 0
52
- version: "0"
53
- required_rubygems_version: !ruby/object:Gem::Requirement
54
- none: false
55
- requirements:
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ required_rubygems_version: !ruby/object:Gem::Requirement
39
+ requirements:
56
40
  - - ">="
57
- - !ruby/object:Gem::Version
58
- segments:
59
- - 0
60
- version: "0"
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
61
43
  requirements: []
62
-
63
44
  rubyforge_project:
64
- rubygems_version: 1.3.7
45
+ rubygems_version: 2.4.6
65
46
  signing_key:
66
- specification_version: 3
67
- summary: RailheadAutoformat is a Ruby on Rails plugin that automatically cleans up input fields.
47
+ specification_version: 4
48
+ summary: RailheadAutoformat is a Ruby on Rails plugin that automatically cleans up
49
+ input fields.
68
50
  test_files: []
69
-
data/init.rb DELETED
@@ -1 +0,0 @@
1
- require 'railhead_autoformat'