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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 27ed89918b47584a284c399460083f654451eea9
4
- data.tar.gz: 920d1337768824ec3e09e2357679a48c0e966eb5
3
+ metadata.gz: 96910a96e82bac89bd5b6dd6e58f8ecb9f59b972
4
+ data.tar.gz: edc7e677e27fcdb59974aa9a290b55564c11bd84
5
5
  SHA512:
6
- metadata.gz: 7dad277ca079b42e8b1ceab8946b82dc8c217beb5936ac3019e28ae036226080ee025d80771e47131e6bfcfc0783cfacdbd47262d07db2d0edcada442fc4abfe
7
- data.tar.gz: 16ef6a38fec674c0deb56b9be7d278cf3f86e3972646ebb4c68723c633dc5ccdd7144982543925555cddb0922f83c8558b3829fd4aaa3c8bafce94793502e6c5
6
+ metadata.gz: 0128719db6e492f03162a22a34de9a98f0d33d0416d328bfc0501fad98d3cb67d5e1ac1a0a58ab92865e5423208e4213a3aff5b780700d4ceebffd806b872c22
7
+ data.tar.gz: a202fef5a71af505c97dafca3715cd46c491b273cc3003b9a834de6ee0c09ef02eac5ae7e939580c1ac40cb55456e68c650b283619f6b4d18b383bc31b358273
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in rename_app.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,17 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ rename_app (0.0.1)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ rake (10.3.0)
10
+
11
+ PLATFORMS
12
+ ruby
13
+
14
+ DEPENDENCIES
15
+ bundler (~> 1.3)
16
+ rake
17
+ rename_app!
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
- TODO: Write a gem description
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
- TODO: Write usage instructions here
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
@@ -0,0 +1,3 @@
1
+ module RenameApp
2
+ VERSION = "0.0.3"
3
+ end
Binary file
@@ -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.2
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-17 00:00:00.000000000 Z
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