rename_app 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 +4 -4
- data/Gemfile +4 -0
- data/Gemfile.lock +17 -0
- data/LICENSE.txt +22 -0
- data/README.md +12 -2
- data/Rakefile +1 -0
- data/lib/rename_app.rb +20 -0
- data/lib/rename_app/version.rb +3 -0
- data/rename_app-0.0.2.gem +0 -0
- data/rename_app.gemspec +23 -0
- metadata +10 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96910a96e82bac89bd5b6dd6e58f8ecb9f59b972
|
4
|
+
data.tar.gz: edc7e677e27fcdb59974aa9a290b55564c11bd84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0128719db6e492f03162a22a34de9a98f0d33d0416d328bfc0501fad98d3cb67d5e1ac1a0a58ab92865e5423208e4213a3aff5b780700d4ceebffd806b872c22
|
7
|
+
data.tar.gz: a202fef5a71af505c97dafca3715cd46c491b273cc3003b9a834de6ee0c09ef02eac5ae7e939580c1ac40cb55456e68c650b283619f6b4d18b383bc31b358273
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 TODO: Write your name
|
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
@@ -1,6 +1,6 @@
|
|
1
1
|
# RenameApp
|
2
2
|
|
3
|
-
|
3
|
+
Use this gem to rename your rails application
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -18,7 +18,17 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
|
21
|
+
Open your "irb" console within your application root.
|
22
|
+
|
23
|
+
Type the command:
|
24
|
+
|
25
|
+
require 'rename_app'
|
26
|
+
|
27
|
+
# The command that renames the app
|
28
|
+
|
29
|
+
RenameApp.find_n_replace("The current name of the App", "The new name for the app")
|
30
|
+
|
31
|
+
|
22
32
|
|
23
33
|
## Contributing
|
24
34
|
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/lib/rename_app.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
require "rename_app/version"
|
2
|
+
|
3
|
+
module RenameApp
|
4
|
+
|
5
|
+
class << self
|
6
|
+
def find_n_replace(search_text, replace_text)
|
7
|
+
Dir.glob("config/**/*.rb").each do |file|
|
8
|
+
search_n_replace(file, search_text, replace_text)
|
9
|
+
end
|
10
|
+
search_n_replace("Rakefile", search_text, replace_text)
|
11
|
+
end
|
12
|
+
|
13
|
+
def search_n_replace(the_file, search_text, replace_text)
|
14
|
+
text = File.read(the_file)
|
15
|
+
replace = text.gsub(search_text, replace_text)
|
16
|
+
File.open(the_file,"w") {|file| file.puts replace}
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
Binary file
|
data/rename_app.gemspec
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'rename_app/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "rename_app"
|
8
|
+
spec.version = RenameApp::VERSION
|
9
|
+
spec.authors = ["Anjana Nair"]
|
10
|
+
spec.email = ["anjana.arun@revenuemed.com"]
|
11
|
+
spec.description = %q{This gem will rename your application}
|
12
|
+
spec.summary = %q{This gem will rename your application according to your choice}
|
13
|
+
spec.homepage = ""
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rename_app
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anjana Nair
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -45,7 +45,15 @@ executables: []
|
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
+
- Gemfile
|
49
|
+
- Gemfile.lock
|
50
|
+
- LICENSE.txt
|
48
51
|
- README.md
|
52
|
+
- Rakefile
|
53
|
+
- lib/rename_app.rb
|
54
|
+
- lib/rename_app/version.rb
|
55
|
+
- rename_app-0.0.2.gem
|
56
|
+
- rename_app.gemspec
|
49
57
|
homepage: ''
|
50
58
|
licenses:
|
51
59
|
- MIT
|