kitcat 1.0.1 → 1.0.2

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: f897bc2d5d9d7171d62f024338a59076cda9cd4e
4
- data.tar.gz: b2a8c4e3a483b5e82dd46a5d45dad08feb28f3b8
3
+ metadata.gz: a5e685ae7225e7f3e328af1e94918c0366c0ff21
4
+ data.tar.gz: 4ac8b3676886f8e7e113d73864d6c0b6bf3706b4
5
5
  SHA512:
6
- metadata.gz: 42ffa3a76b786a4c30e940f9fc397641d568f297df6398295e8696d66b18c245b84b102fe3e9bfd4b7abeeef4da67652c32e3c0947cdca503afc47b585837519
7
- data.tar.gz: 41fad141fa2dbecfb79ebd1d17b8beacdba3dbf17d2632b79ee4742e368121f160d945640fe739b2d5d533bf42f0a3461dc7f28724ce723f8b49bf7c30cba079
6
+ metadata.gz: b8ebfb0eb5cbe5c1915fbe4a02f2f674c64beccd082248600b0d51055e9b0f1a31c4ea56c9643b98ed924609a20148e0b5c295e09e18992566b160a546841903
7
+ data.tar.gz: b56190f893c0184391469fa9bee20a98b2fcbe3e5edba9de35d72de4b55d65f728567e5d1644a79277915828a12b4831cad385c79d3804444efe8a217d79f9c4
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
  [![Coverage Status](https://coveralls.io/repos/github/simplybusiness/kitcat/badge.svg?branch=develop)](https://coveralls.io/github/simplybusiness/kitcat?branch=develop)
3
3
  [![Code Climate](https://codeclimate.com/github/simplybusiness/kitcat/badges/gpa.svg)](https://codeclimate.com/github/simplybusiness/kitcat)
4
4
 
5
- # KitCat
5
+ # Kitcat
6
6
 
7
7
  *Sometimes schema migrations are just not enough.*
8
8
 
@@ -22,7 +22,7 @@ Assuming that the migration strategy is implemented with a class `MigrationStrat
22
22
 
23
23
  ``` ruby
24
24
  migration_strategy = MigrationStrategy.new
25
- migration_framework = KitCat::Framework.new(migration_strategy)
25
+ migration_framework = Kitcat::Framework.new(migration_strategy)
26
26
  migration_framework.execute
27
27
  ```
28
28
 
@@ -3,7 +3,7 @@ require 'active_model'
3
3
  require 'active_support/core_ext'
4
4
  require 'kitcat/logging'
5
5
 
6
- module KitCat
6
+ module Kitcat
7
7
  class Framework
8
8
  attr_reader :last_item_processed,
9
9
  :number_of_items_processed,
@@ -17,7 +17,7 @@ module KitCat
17
17
  :log_interrupt_callback_finish, to: :logging
18
18
 
19
19
  # @params migration_strategy {Object}
20
- # Instance implementing the methods of +KitCat::Callbacks+
20
+ # Instance implementing the methods of +Kitcat::Callbacks+
21
21
  #
22
22
  # migration_name {String} Optional.
23
23
  # The name of the migration. Used as tag in log file name. If not given, a random/unique one is used.
@@ -44,7 +44,7 @@ module KitCat
44
44
  @number_of_items_to_process = number_of_items_to_process
45
45
  @last_item_processed = nil
46
46
  @progress_bar = initialize_progress_bar(progress_bar, progress_bar_output)
47
- @logging = KitCat::Logging.new(migration_strategy, migration_name)
47
+ @logging = Kitcat::Logging.new(migration_strategy, migration_name)
48
48
  end
49
49
 
50
50
  def execute
@@ -1,5 +1,5 @@
1
- module KitCat
2
- # +KitCat::Logging+ is used to encapsulate the functionality of +Framework+ related to
1
+ module Kitcat
2
+ # +Kitcat::Logging+ is used to encapsulate the functionality of +Framework+ related to
3
3
  # logging.
4
4
  #
5
5
  # It needs to be initialized with the +migration_name+ because this is used to build the
@@ -1,4 +1,4 @@
1
- module KitCat
1
+ module Kitcat
2
2
  module TerminalWidthCalculator
3
3
  class << self
4
4
  def calculate
data/lib/kitcat.rb CHANGED
@@ -1,2 +1,5 @@
1
1
  require 'kitcat/framework'
2
2
  require 'kitcat/terminal_width_calculator'
3
+
4
+ # Backward compatibility
5
+ KitCat = Kitcat
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitcat
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simply Business
@@ -14,114 +14,114 @@ dependencies:
14
14
  name: ruby-progressbar
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '1.8'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '1.8'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activemodel
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '4.2'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '4.2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '3.4'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: '3.4'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: timecop
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '0.8'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ~>
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: '0.8'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: coveralls
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ~>
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: '0.8'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ~>
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
82
+ version: '0.8'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ~>
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: '11.1'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ~>
95
95
  - !ruby/object:Gem::Version
96
- version: '0'
96
+ version: '11.1'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rubocop
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ~>
102
102
  - !ruby/object:Gem::Version
103
- version: '0'
103
+ version: '0.40'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ~>
109
109
  - !ruby/object:Gem::Version
110
- version: '0'
110
+ version: '0.40'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: bundler-audit
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ~>
116
116
  - !ruby/object:Gem::Version
117
- version: '0'
117
+ version: '0.5'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ~>
123
123
  - !ruby/object:Gem::Version
124
- version: '0'
124
+ version: '0.5'
125
125
  description: initially created for data migrations. Provides logging, progess bar
126
126
  and graceful handling
127
127
  email: