file_manipulator 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3dca692b9e18d8ae123236c46bc35b21a9ad7be7
4
- data.tar.gz: 588ad83c8169803af73ba8e0cba5b7fa68218067
3
+ metadata.gz: da964e32e2de589997940af41f0c40385789a9ee
4
+ data.tar.gz: fabd50849ee61d64ae62b5555d3a825d1f2e656f
5
5
  SHA512:
6
- metadata.gz: 7b9e4cc0e29a567614333591868f92ef6ed68a8abf61d00b4f315733c3dcec220159c4a7d8671cee264cb30f49e1fb0ce52d84d8d69860d16d44f964df7d268a
7
- data.tar.gz: 84ddab6b8b674052907087c478a2b04f3e231c82bc87a5e9320c1a4cf15869c4ad46fba20e8e5ff63d76e7aa25946ca0d818974dbc270563d4effc487e94feef
6
+ metadata.gz: c9ed3fc1c74c534d48a9fbb9ffac5fd5660e8fbb32b8764d63e69f5f0cea5626d6d9e77b967085509137948e063f28214677e1e63f10ca604d5f56864abc5657
7
+ data.tar.gz: af359278b489611eb0d378e044376d27c96d7b1bbcf7849364f6f8f9865e9d4e1a79deaa9aa69f62fae333d547eb2dc313b071ff21a4524c21b6c2a62c1ebbc4
data/Gemfile.lock CHANGED
@@ -1,19 +1,77 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- file_manipulator (0.1.0)
4
+ file_manipulator (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
+ actioncable (5.0.0.1)
10
+ actionpack (= 5.0.0.1)
11
+ nio4r (~> 1.2)
12
+ websocket-driver (~> 0.6.1)
13
+ actionmailer (5.0.0.1)
14
+ actionpack (= 5.0.0.1)
15
+ actionview (= 5.0.0.1)
16
+ activejob (= 5.0.0.1)
17
+ mail (~> 2.5, >= 2.5.4)
18
+ rails-dom-testing (~> 2.0)
19
+ actionpack (5.0.0.1)
20
+ actionview (= 5.0.0.1)
21
+ activesupport (= 5.0.0.1)
22
+ rack (~> 2.0)
23
+ rack-test (~> 0.6.3)
24
+ rails-dom-testing (~> 2.0)
25
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
26
+ actionview (5.0.0.1)
27
+ activesupport (= 5.0.0.1)
28
+ builder (~> 3.1)
29
+ erubis (~> 2.7.0)
30
+ rails-dom-testing (~> 2.0)
31
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
32
+ activejob (5.0.0.1)
33
+ activesupport (= 5.0.0.1)
34
+ globalid (>= 0.3.6)
35
+ activemodel (5.0.0.1)
36
+ activesupport (= 5.0.0.1)
37
+ activerecord (5.0.0.1)
38
+ activemodel (= 5.0.0.1)
39
+ activesupport (= 5.0.0.1)
40
+ arel (~> 7.0)
41
+ activesupport (5.0.0.1)
42
+ concurrent-ruby (~> 1.0, >= 1.0.2)
43
+ i18n (~> 0.7)
44
+ minitest (~> 5.1)
45
+ tzinfo (~> 1.1)
46
+ arel (7.1.2)
47
+ builder (3.2.2)
9
48
  byebug (9.0.5)
10
49
  codeclimate-test-reporter (0.6.0)
11
50
  simplecov (>= 0.7.1, < 1.0.0)
12
51
  coderay (1.1.1)
52
+ concurrent-ruby (1.0.2)
13
53
  diff-lcs (1.2.5)
14
54
  docile (1.1.5)
55
+ erubis (2.7.0)
56
+ globalid (0.3.7)
57
+ activesupport (>= 4.1.0)
58
+ i18n (0.7.0)
15
59
  json (2.0.2)
60
+ loofah (2.0.3)
61
+ nokogiri (>= 1.5.9)
62
+ mail (2.6.4)
63
+ mime-types (>= 1.16, < 4)
16
64
  method_source (0.8.2)
65
+ mime-types (3.1)
66
+ mime-types-data (~> 3.2015)
67
+ mime-types-data (3.2016.0521)
68
+ mini_portile2 (2.1.0)
69
+ minitest (5.9.0)
70
+ nio4r (1.2.1)
71
+ nokogiri (1.6.8)
72
+ mini_portile2 (~> 2.1.0)
73
+ pkg-config (~> 1.1.7)
74
+ pkg-config (1.1.7)
17
75
  pry (0.10.4)
18
76
  coderay (~> 1.1.0)
19
77
  method_source (~> 0.8.1)
@@ -21,6 +79,32 @@ GEM
21
79
  pry-byebug (3.4.0)
22
80
  byebug (~> 9.0)
23
81
  pry (~> 0.10)
82
+ rack (2.0.1)
83
+ rack-test (0.6.3)
84
+ rack (>= 1.0)
85
+ rails (5.0.0.1)
86
+ actioncable (= 5.0.0.1)
87
+ actionmailer (= 5.0.0.1)
88
+ actionpack (= 5.0.0.1)
89
+ actionview (= 5.0.0.1)
90
+ activejob (= 5.0.0.1)
91
+ activemodel (= 5.0.0.1)
92
+ activerecord (= 5.0.0.1)
93
+ activesupport (= 5.0.0.1)
94
+ bundler (>= 1.3.0, < 2.0)
95
+ railties (= 5.0.0.1)
96
+ sprockets-rails (>= 2.0.0)
97
+ rails-dom-testing (2.0.1)
98
+ activesupport (>= 4.2.0, < 6.0)
99
+ nokogiri (~> 1.6.0)
100
+ rails-html-sanitizer (1.0.3)
101
+ loofah (~> 2.0)
102
+ railties (5.0.0.1)
103
+ actionpack (= 5.0.0.1)
104
+ activesupport (= 5.0.0.1)
105
+ method_source
106
+ rake (>= 0.8.7)
107
+ thor (>= 0.18.1, < 2.0)
24
108
  rake (10.5.0)
25
109
  rspec (3.5.0)
26
110
  rspec-core (~> 3.5.0)
@@ -41,6 +125,20 @@ GEM
41
125
  simplecov-html (~> 0.10.0)
42
126
  simplecov-html (0.10.0)
43
127
  slop (3.6.0)
128
+ sprockets (3.7.0)
129
+ concurrent-ruby (~> 1.0)
130
+ rack (> 1, < 3)
131
+ sprockets-rails (3.2.0)
132
+ actionpack (>= 4.0)
133
+ activesupport (>= 4.0)
134
+ sprockets (>= 3.0.0)
135
+ thor (0.19.1)
136
+ thread_safe (0.3.5)
137
+ tzinfo (1.2.2)
138
+ thread_safe (~> 0.1)
139
+ websocket-driver (0.6.4)
140
+ websocket-extensions (>= 0.1.0)
141
+ websocket-extensions (0.1.2)
44
142
 
45
143
  PLATFORMS
46
144
  ruby
@@ -51,8 +149,9 @@ DEPENDENCIES
51
149
  file_manipulator!
52
150
  pry (~> 0.10.4)
53
151
  pry-byebug (~> 3.4.0)
152
+ rails
54
153
  rake (~> 10.0)
55
154
  rspec (~> 3.0)
56
155
 
57
156
  BUNDLED WITH
58
- 1.13.0
157
+ 1.13.1
data/README.md CHANGED
@@ -8,6 +8,7 @@
8
8
  [![Dependency Status](https://gemnasium.com/badges/github.com/gipcompany/file_manipulator.svg)](https://gemnasium.com/github.com/gipcompany/file_manipulator)
9
9
  [![Code Climate](https://codeclimate.com/github/gipcompany/file_manipulator/badges/gpa.svg)](https://codeclimate.com/github/gipcompany/file_manipulator)
10
10
  [![Test Coverage](https://codeclimate.com/github/gipcompany/file_manipulator/badges/coverage.svg)](https://codeclimate.com/github/gipcompany/file_manipulator/coverage)
11
+ [![Gem](https://img.shields.io/gem/dt/file_manipulator.svg)](https://rubygems.org/gems/file_manipulator)
11
12
  [![LICENSE](https://img.shields.io/badge/license-mit-blue.svg)](LICENSE.txt)
12
13
 
13
14
  ## Installation
@@ -26,6 +27,13 @@ Or install it yourself as:
26
27
 
27
28
  $ gem install file_manipulator
28
29
 
30
+ ### Rails
31
+
32
+ Run the following Rails' generate command which will generate customizable initializer `config/initializers/file_manipulator.rb`.
33
+
34
+ $ rails generate file_manipulator:install
35
+ create config/initializers/file_manipulator.rb
36
+
29
37
  ## Usage
30
38
 
31
39
  ```ruby
@@ -27,4 +27,5 @@ Gem::Specification.new do |spec|
27
27
  spec.add_development_dependency "pry", '~> 0.10.4'
28
28
  spec.add_development_dependency "pry-byebug", '~> 3.4.0'
29
29
  spec.add_development_dependency 'codeclimate-test-reporter'
30
+ spec.add_development_dependency 'rails'
30
31
  end
@@ -1,3 +1,3 @@
1
1
  module FileManipulator
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -0,0 +1,8 @@
1
+ Description:
2
+ Creates file_manipulator's initializer
3
+
4
+ Example:
5
+ rails generate file_manipulator:install
6
+
7
+ This will create:
8
+ config/initializers/file_manipulator.rb
@@ -0,0 +1,11 @@
1
+ module FileManipulator
2
+ module Generators
3
+ class InstallGenerator < ::Rails::Generators::Base
4
+ source_root File.expand_path('../templates', __FILE__)
5
+
6
+ def copy_initializer_file
7
+ copy_file "initializer.rb", "config/initializers/file_manipulator.rb"
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,7 @@
1
+ FileManipulator.configure do |config|
2
+ config.prefix = 'file_manipulator'
3
+ # config.file_name = 'Gemfile'
4
+ # config.split_files_directory = 'tmp'
5
+ # config.merged_file_directory = 'tmp'
6
+ # config.size = 10485760
7
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: file_manipulator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Atsushi Ishida
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-21 00:00:00.000000000 Z
11
+ date: 2016-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rails
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
97
111
  description: Manipulate (Split/Merge) Files
98
112
  email:
99
113
  - gipcompany@gmail.com
@@ -123,6 +137,9 @@ files:
123
137
  - lib/file_manipulator/merger.rb
124
138
  - lib/file_manipulator/splitter.rb
125
139
  - lib/file_manipulator/version.rb
140
+ - lib/generators/file_manipulator/install/USAGE
141
+ - lib/generators/file_manipulator/install/install_generator.rb
142
+ - lib/generators/file_manipulator/install/templates/initializer.rb
126
143
  - tmp/.keep
127
144
  homepage: https://github.com/gipcompany/file_manipulator
128
145
  licenses:
@@ -144,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
161
  version: '0'
145
162
  requirements: []
146
163
  rubyforge_project:
147
- rubygems_version: 2.6.6
164
+ rubygems_version: 2.4.5.1
148
165
  signing_key:
149
166
  specification_version: 4
150
167
  summary: Manipulate Files