ActiveRecorder 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7a8eff3902919348b4455c93be71ca4f2bdf7c87
4
- data.tar.gz: d5b0484bc0fb9fa3da6fc9402a33e22739d1fdc0
3
+ metadata.gz: 99dcc3820e1f29f6cad9d6c513bb9bd621315223
4
+ data.tar.gz: 829803d0f695ef5eff15fa0a9f6ecf5e158c4767
5
5
  SHA512:
6
- metadata.gz: 18d95e6455e3058e8de53e4b2333ab18cd64f7a0f3381de17f64ed67f94f3c95665b5abd24c27f51f3941a48b7ac0b8502162f203ea1f6e764cec5bc18b89bf5
7
- data.tar.gz: 7684718c473d516cc78f71d2a0dd445198b6289d2b656708675a8897e2422817cb3377c8653b2eb37fe8240445dc8c885be28f70571583b1a3c8be1d7023da63
6
+ metadata.gz: cc9d3497c9e4cb19b40cb87052483f7d0ba4cf04e1ca8fc9c63fa10847f4885d6e4c23e93f617aec9d0a1b868dea7458ae45586f76124025c407e85c892ef43f
7
+ data.tar.gz: 7c87a941afd37e5d98418f22d8c083331a1123d64efa4f4c1f1be4d5a4ce7bb472e360a98aaf2ff312aee8486809c53b257db7b62bfee6d5296900bc657fbf1d
@@ -78,9 +78,13 @@ module Filewriter
78
78
  # Open the file to read from
79
79
  open(input, 'r') do |input_file|
80
80
  open(output, 'w') do |output_file|
81
+ # Check whether line already exists
82
+ exist = false
81
83
  # Read each line of input
82
84
  input_file.each_line do |line|
83
- if line.start_with? 'end'
85
+ if line.start_with? "get 'tables' => 'tables#index'"
86
+ exist = true
87
+ elsif line.start_with? 'end' and not exist
84
88
  output_file.puts(" get 'tables' => 'tables#index'")
85
89
  output_file.puts('end')
86
90
  else
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ActiveRecorder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Goh Chin Loong
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-04-27 00:00:00.000000000 Z
11
+ date: 2016-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -64,7 +64,7 @@ files:
64
64
  - lib/active_recorder/filewriter.rb
65
65
  - lib/active_recorder/filereader.rb
66
66
  - lib/active_recorder/record.rb
67
- homepage: http://www.github.com/chinloong93
67
+ homepage: https://rubygems.org/gems/ActiveRecorder
68
68
  licenses:
69
69
  - MIT
70
70
  metadata: {}