h2ocube_rails_tasks 0.0.5 → 0.0.6

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: 7319782d7489958ef08fad21c42e5bf836a6ce07
4
- data.tar.gz: 6f2e789de7348c830bcb64f343b02a6f3b659471
3
+ metadata.gz: b62d2bf5c9b93c9e86dced7a3f87406528c3fc69
4
+ data.tar.gz: a58d600841a7e4ab85c6e1b0a6f9288616faf461
5
5
  SHA512:
6
- metadata.gz: 5d613a1ff2fc6e87cce4426e42780fc9a8bb9add819c224034635f0109bcdb49aeca0c02a309a8dd2576edce1f16fa00b7be5a52a7e4b90203f74ebbb6229104
7
- data.tar.gz: bdfccf39167bb8d768a5ef7e651141f51d215cf8425ae85200a195fbe94c313dca06e5bbee0bdc73413f390fce258749b82f1e195c0317f369530d573fc28c64
6
+ metadata.gz: 796a688c77d57098ef2c6fe4b42bb18b88d0675dc91b58c8ac087d27a7095b779d8ff9e181d7979f035f4a4139d039dfd3c1c832f3afc673cce08a74406f700e
7
+ data.tar.gz: e541ae96ca4e061521383d47ba85c652866c8cef65bb3bdcd3462a624fcc2038dc3b2704c157a521e86bcfcd3ff71c943a6705f4327a6b3c1380ffa4f0ab6b52
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 H2ocube.com
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -8,7 +8,7 @@ This is a plugin to add some useful tasks to rails.
8
8
 
9
9
  Add this line to your application's Gemfile:
10
10
 
11
- gem 'h2ocube_rails_tasks', group: :development
11
+ gem 'h2ocube_rails_tasks'
12
12
 
13
13
  And then execute:
14
14
 
@@ -59,6 +59,9 @@ Or install it yourself as:
59
59
  rake resque:stop # Stop Resque worker
60
60
  rake resque:web # Start Resque web interface
61
61
 
62
+ # others
63
+ rake locales:sort # Sort config/locales/*.yml
64
+
62
65
  ## Contributing
63
66
 
64
67
  1. Fork it
@@ -0,0 +1,15 @@
1
+ {
2
+ "folders":
3
+ [
4
+ {
5
+ "path": "./",
6
+ "folder_exclude_patterns": ["tmp", "log", "dump"],
7
+ "file_exclude_patterns": ["*.sassc", "*.log", "*.scssc"]
8
+ }
9
+ ],
10
+ "tab_size": 2,
11
+ "translate_tabs_to_spaces": true,
12
+ "ensure_newline_at_eof_on_save": true,
13
+ "trim_trailing_white_space_on_save": true,
14
+ "scroll_past_end": true
15
+ }
@@ -3,13 +3,14 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'h2ocube_rails_tasks'
6
- s.version = '0.0.5'
6
+ s.version = '0.0.6'
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ['Ben']
9
9
  s.email = ['ben@h2ocube.com']
10
10
  s.homepage = 'https://github.com/h2ocube/h2ocube_rails_tasks'
11
11
  s.summary = %q{This is a plugin to add some useful tasks to rails.}
12
12
  s.description = %q{This is a plugin to add some useful tasks to rails.}
13
+ s.license = 'MIT'
13
14
 
14
15
  s.files = `git ls-files`.split("\n")
15
16
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
@@ -0,0 +1,21 @@
1
+ namespace :locales do
2
+ desc 'Sort config/locales/*.yml'
3
+ task :sort do
4
+ def deeply_sort_hash(object)
5
+ return object unless object.is_a?(Hash)
6
+ hash = Hash.new
7
+ object.each { |k, v| hash[k] = deeply_sort_hash(v) }
8
+ sorted = hash.sort { |a, b| a[0].to_s <=> b[0].to_s }
9
+ hash.class[sorted]
10
+ end
11
+
12
+ Dir[Rails.root.join('config/locales/*.yml')].each do |f|
13
+ STDOUT.print (f).color(:green)
14
+ hash = deeply_sort_hash(YAML.load(File.read(f)))
15
+ File.open(f, 'w') { |file|
16
+ file.write hash.to_yaml
17
+ }
18
+ STDOUT.print ("...done!\n").color(:green)
19
+ end
20
+ end
21
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: h2ocube_rails_tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-09 00:00:00.000000000 Z
11
+ date: 2013-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rainbow
@@ -33,12 +33,15 @@ extra_rdoc_files: []
33
33
  files:
34
34
  - .gitignore
35
35
  - Gemfile
36
+ - LICENSE.txt
36
37
  - README.md
37
38
  - Rakefile
39
+ - gem.sublime-project
38
40
  - h2ocube_rails_tasks.gemspec
39
41
  - lib/h2ocube_rails_tasks.rb
40
42
  - lib/h2ocube_rails_tasks/helper.rb
41
43
  - lib/h2ocube_rails_tasks/tasks/git.rb
44
+ - lib/h2ocube_rails_tasks/tasks/locales.rb
42
45
  - lib/h2ocube_rails_tasks/tasks/mongodb.rb
43
46
  - lib/h2ocube_rails_tasks/tasks/mysql.rb
44
47
  - lib/h2ocube_rails_tasks/tasks/puma.rb
@@ -46,7 +49,8 @@ files:
46
49
  - lib/h2ocube_rails_tasks/tasks/resque.rb
47
50
  - lib/h2ocube_rails_tasks/tasks/unicorn.rb
48
51
  homepage: https://github.com/h2ocube/h2ocube_rails_tasks
49
- licenses: []
52
+ licenses:
53
+ - MIT
50
54
  metadata: {}
51
55
  post_install_message:
52
56
  rdoc_options: []
@@ -64,9 +68,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
68
  version: '0'
65
69
  requirements: []
66
70
  rubyforge_project:
67
- rubygems_version: 2.0.3
71
+ rubygems_version: 2.0.7
68
72
  signing_key:
69
73
  specification_version: 4
70
74
  summary: This is a plugin to add some useful tasks to rails.
71
75
  test_files: []
72
- has_rdoc: