tumblr_autofixer 0.1.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/README.md +1 -1
- data/lib/autofixer/autofixer.rb +2 -3
- data/lib/autofixer/commands/generate_tags_yml.rb +2 -2
- data/lib/autofixer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6dc74bc18a584076386c401fd1a96d8d51d6c9a0
|
4
|
+
data.tar.gz: 49932a2c0b035ca80f8880941f612500bd44eff3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ef8a443ea7a9ef50856063d5f22a9264d82f3b432800b5c377d9290aceeb247009fc2fd37b029655b1cad59611b59785847073cbb60a09e436c43cabe7d57d2
|
7
|
+
data.tar.gz: 7ce4305cc69d110d170903a0ffe554b2e63d441ce6169e38dc2ec1b1a43aeb895f36b0c94f69d09bc2f994125067c743397da86e2ac025014a51d4e245ae3cca
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
\- Generated files are stored in ~/config_md/taf/
|
4
4
|
\- Careful when editing configuration files, as with all YAML files, indentation is crucial!
|
5
5
|
|
6
|
-
# Version 0.1.
|
6
|
+
# Version 0.1.2
|
7
7
|
- New: [Tag Matcher](#using-the-tag-matcher)! Use a whitelist of tags to improve Autofixer's ability to
|
8
8
|
- Ability to include DK::Autofixer in your programs
|
9
9
|
- Started building out the test suite
|
data/lib/autofixer/autofixer.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
module DK
|
2
|
-
|
2
|
+
class Autofixer
|
3
3
|
ERROR = '**'
|
4
4
|
POSTS = '/Users/meis/coding/rails/autofixer/db/test.posts'
|
5
5
|
CONFIGDIR = '/config_md/taf/'
|
@@ -153,7 +153,6 @@ module DK
|
|
153
153
|
b = binding
|
154
154
|
commands.each{ |x| eval(x, b) }
|
155
155
|
normalize(res)
|
156
|
-
endormalize(res)
|
157
156
|
end
|
158
157
|
|
159
158
|
def clear(posts)
|
@@ -180,7 +179,7 @@ module DK
|
|
180
179
|
|
181
180
|
def log(type, msg)
|
182
181
|
@messages << "#{type.capitalize}: #{msg}"
|
183
|
-
end
|
182
|
+
end
|
184
183
|
|
185
184
|
# **************************************************************************
|
186
185
|
# Filtration Methods
|
@@ -25,13 +25,13 @@ module DK
|
|
25
25
|
@tstore = YAML::Store.new("#{confile('tags.yml')}")
|
26
26
|
# Preserve existing
|
27
27
|
existing = restore(@tstore, :good)
|
28
|
-
puts "Found #{existing.size} tags." if existing
|
28
|
+
# puts "Found #{existing.size} tags." if existing
|
29
29
|
@tags += existing if existing
|
30
30
|
@tags = @tags.map(&:downcase)
|
31
31
|
@tags.uniq!
|
32
32
|
@tags.sort!
|
33
33
|
# Save
|
34
|
-
puts "Saving #{@tags.size} tags"
|
34
|
+
# puts "Saving #{@tags.size} tags"
|
35
35
|
store(@tstore, :good, @tags)
|
36
36
|
|
37
37
|
end
|
data/lib/autofixer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tumblr_autofixer
|
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
|
- Meissa Dia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-04-
|
11
|
+
date: 2018-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tumblr_draftking
|