model_renamer 0.1.3 → 0.1.4

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: 466b75dc220dec1b17dcfc70fbed895b9946e9ba
4
- data.tar.gz: a76d51ce9d8302350da2a8bc052800afb9ae071c
3
+ metadata.gz: 069e190d21b194a2d63b4e44b4bfac8d92e89aad
4
+ data.tar.gz: 9659a495baa7263643627c67551be29f3560e5e0
5
5
  SHA512:
6
- metadata.gz: df75d798655bc4a9e1acb5104fdc190533b83b471fa71c78c22328edc9f2aa25cbbd6c3b1931de3a8aceea5b70840f95fce7de1e0a345a40f0e0aa5dbab89e45
7
- data.tar.gz: 020ce49833ed66cacc1fc5cfcbaf87d5bdb114de2c41bd43265c35568c13cd9754ef2eba84bf46db7a9a8f3abd34c1e8576b6486bd8ce05ff2f09319fb939c10
6
+ metadata.gz: 972da3171b8c765a22f35e6f4b34fe5c0da0fa454cb99f6630180d9e412ba4f869839fe790094513374d50d3b3e62153f8fdd0258071efd38205ebe32fe4bf01
7
+ data.tar.gz: ab59bae56dfdbf465f82490526b9520ed3172145c2b679f2eff828a039e0594bc24ca12229e2c14a344b4e0d0b94dfe6a528a3c837884f3d3d93e7f493c546e4
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2015 Pawel Gut
3
+ Copyright (c) 2015 Paul Gut
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -23,17 +23,17 @@ Or install it yourself as:
23
23
  Run rails console and use the following command:
24
24
 
25
25
  ```ruby
26
- ModelRenamer.new("OldName", "NewName").rename_and_generate_migrations
26
+ Rename.new("OldName", "NewName").rename_and_generate_migrations
27
27
  ```
28
28
 
29
29
  This will rename everything in the codebase as well as generate the migrations. If you only want to rename in the codebase, run:
30
30
 
31
31
  ```ruby
32
- ModelRenamer.new("OldName", "NewName").rename
32
+ Rename.new("OldName", "NewName").rename
33
33
  ```
34
34
 
35
35
  To only generate migrations, you guessed it:
36
36
 
37
37
  ```ruby
38
- ModelRenamer.new("OldName", "NewName").generate_migrations
38
+ Rename.new("OldName", "NewName").generate_migrations
39
39
  ```
@@ -8,9 +8,9 @@ require 'active_support'
8
8
  require 'active_support/inflector'
9
9
  require 'active_record'
10
10
  require 'rails/generators'
11
- require 'model_renamer/migration_generator.rb'
12
- require 'model_renamer/variations_generator.rb'
13
- require 'model_renamer/model_renamer_runner.rb'
11
+ require 'model_renamer/migration_generator'
12
+ require 'model_renamer/variations_generator'
13
+ require 'model_renamer/rename'
14
14
 
15
15
 
16
16
 
@@ -2,7 +2,7 @@
2
2
  # Uses VariationsGenerator output to first change all the occurences of the model name in the files,
3
3
  # then to create new directories and rename files. Then uses MigrationGenerator to create a migration
4
4
  #
5
- class ModelRenamer
5
+ class Rename
6
6
 
7
7
  def initialize old_name, new_name
8
8
  @variations_generator = VariationsGenerator.new(old_name, new_name)
@@ -1,3 +1,3 @@
1
1
  module ModelRenamer
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: model_renamer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Gut
@@ -52,7 +52,7 @@ files:
52
52
  - README.md
53
53
  - lib/model_renamer.rb
54
54
  - lib/model_renamer/migration_generator.rb
55
- - lib/model_renamer/model_renamer.rb
55
+ - lib/model_renamer/rename.rb
56
56
  - lib/model_renamer/variations_generator.rb
57
57
  - lib/model_renamer/version.rb
58
58
  - model_renamer.gemspec