generapp 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: generapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gustavo Bazan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-13 00:00:00.000000000 Z
11
+ date: 2016-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -58,6 +58,26 @@ dependencies:
58
58
  - - ">="
59
59
  - !ruby/object:Gem::Version
60
60
  version: 3.4.0
61
+ - !ruby/object:Gem::Dependency
62
+ name: rubocop
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '0.35'
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: '0.35'
71
+ type: :development
72
+ prerelease: false
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - "~>"
76
+ - !ruby/object:Gem::Version
77
+ version: '0.35'
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: '0.35'
61
81
  - !ruby/object:Gem::Dependency
62
82
  name: coveralls
63
83
  requirement: !ruby/object:Gem::Requirement
@@ -110,7 +130,11 @@ extra_rdoc_files: []
110
130
  files:
111
131
  - ".coveralls.yml"
112
132
  - ".gitignore"
133
+ - ".hound.yml"
113
134
  - ".rspec"
135
+ - ".rubocop.yml"
136
+ - ".rubocop_defaults.yml"
137
+ - ".rubocop_todo.yml"
114
138
  - ".ruby-version"
115
139
  - ".travis.yml"
116
140
  - ".yardopts"
@@ -127,7 +151,6 @@ files:
127
151
  - lib/generapp/actions/configuration.rb
128
152
  - lib/generapp/actions/database.rb
129
153
  - lib/generapp/actions/develop.rb
130
- - lib/generapp/actions/files.rb
131
154
  - lib/generapp/actions/production.rb
132
155
  - lib/generapp/actions/test.rb
133
156
  - lib/generapp/actions/views.rb
@@ -1,14 +0,0 @@
1
- module Generapp
2
- module Actions
3
- module Files
4
- def replace_in_file(relative_path, find, replace)
5
- path = File.join(destination_root, relative_path)
6
- contents = IO.read(path)
7
- unless contents.gsub!(find, replace)
8
- raise "#{find.inspect} not found in #{relative_path}"
9
- end
10
- File.open(path, 'w') { |file| file.write(contents) }
11
- end
12
- end
13
- end
14
- end