ActiveRecorder 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_recorder/filewriter.rb +5 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99dcc3820e1f29f6cad9d6c513bb9bd621315223
|
4
|
+
data.tar.gz: 829803d0f695ef5eff15fa0a9f6ecf5e158c4767
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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? '
|
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.
|
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-
|
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:
|
67
|
+
homepage: https://rubygems.org/gems/ActiveRecorder
|
68
68
|
licenses:
|
69
69
|
- MIT
|
70
70
|
metadata: {}
|