snipgem 0.0.5 → 0.0.6
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 +4 -4
- data/app/models/utils/destinationfilewriter.rb +1 -1
- data/app/views/viewformatter.rb +2 -2
- data/lib/snip/version.rb +1 -1
- data/log/snip.log +0 -0
- data/pkg/snip-0.0.1.gem +0 -0
- data/rspec/test_snip_files/subfolder/test3.rb +8 -8
- data/rspec/test_snip_files/test.rb +6 -6
- data/rspec/test_snip_files/test2.rb +6 -6
- data/snip.gemspec +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 720f143a8d4069abd9084abd3a0f9979c1510999
|
4
|
+
data.tar.gz: 8495985a717bbc34bbbb0081392adad6a61e1134
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ec924525d28ce831c5b4b80ea447be81c55f89539b1e0f44db255e26ee9190ccbe90292f8fa846e3c81a7150cf2a57298214a5580a52614f56e6daa20054f24
|
7
|
+
data.tar.gz: 45ba16a5acf4b3a55546d6fa8f7b3cea753997a903736663ab2d5816b340c34ec6378996a9b028d2a61f3d919b040667859a1671b55f51ed777cb56cd4803cde
|
data/app/views/viewformatter.rb
CHANGED
@@ -79,7 +79,7 @@ JS:
|
|
79
79
|
var test = 1234;
|
80
80
|
// </snip>
|
81
81
|
|
82
|
-
You can
|
82
|
+
You can alternatively use <$> and </$>. Your tags will be replaced with <*snip*> and/or <*$*> after running 'snip'.
|
83
83
|
|
84
84
|
|
85
85
|
*** Ongoing usage: ***
|
@@ -95,7 +95,7 @@ Visit https://github.com/jgerminario/snip for more information or to submit bug
|
|
95
95
|
end
|
96
96
|
|
97
97
|
def new_file_path
|
98
|
-
"Snippet file location saved as #{File.absolute_path(ARGV[1])}/my_snips.txt"
|
98
|
+
"Snippet file location saved as '#{File.absolute_path(ARGV[1])}/my_snips.txt'"
|
99
99
|
end
|
100
100
|
|
101
101
|
def no_args_message
|
data/lib/snip/version.rb
CHANGED
data/log/snip.log
ADDED
File without changes
|
data/pkg/snip-0.0.1.gem
CHANGED
Binary file
|
@@ -1,31 +1,31 @@
|
|
1
|
-
#
|
1
|
+
# <*snip*> Title of first snip
|
2
2
|
desc "create the database"
|
3
3
|
task :create do
|
4
4
|
puts "Creating file #{DB_PATH} if it doesn't exist..."
|
5
5
|
touch DB_PATH
|
6
6
|
end
|
7
|
-
#
|
7
|
+
# </*snip*>
|
8
8
|
|
9
|
-
#
|
9
|
+
# <*snip*> Title of this snip
|
10
10
|
desc "drop the database"
|
11
11
|
task :drop do
|
12
12
|
puts "Deleting #{DB_PATH}..."
|
13
13
|
rm_f DB_PATH
|
14
14
|
end
|
15
|
-
#
|
15
|
+
# </*snip*>
|
16
16
|
|
17
|
-
#
|
17
|
+
# <*snip*> Title of first snip
|
18
18
|
desc "create the database"
|
19
19
|
task :create do
|
20
20
|
puts "Creating file #{DB_PATH} if it doesn't exist..."
|
21
21
|
touch DB_PATH
|
22
22
|
end
|
23
|
-
#
|
23
|
+
# </*snip*>
|
24
24
|
|
25
|
-
#
|
25
|
+
# <*snip*> Title of this snip
|
26
26
|
desc "drop the database"
|
27
27
|
task :drop do
|
28
28
|
puts "Deleting #{DB_PATH}..."
|
29
29
|
rm_f DB_PATH
|
30
30
|
end
|
31
|
-
#
|
31
|
+
# </*snip*>
|
@@ -1,22 +1,22 @@
|
|
1
|
-
#
|
1
|
+
# <*snip*>
|
2
2
|
class OrangeTree
|
3
3
|
attr_reader :age, :height
|
4
4
|
def initialize
|
5
5
|
@age = 0
|
6
6
|
@oranges = []
|
7
7
|
end
|
8
|
-
|
8
|
+
#</*snip*>
|
9
9
|
|
10
|
-
# test
|
10
|
+
# test <*snip*> TITLE
|
11
11
|
def age!
|
12
12
|
@oranges += Array.new(rand(1..10)) { Orange.new } if @age > 5
|
13
13
|
end
|
14
|
-
|
14
|
+
#</*snip*>
|
15
15
|
|
16
|
-
# ewre w
|
16
|
+
# ewre w<*snip*> test
|
17
17
|
def any_oranges?
|
18
18
|
!@oranges.empty?
|
19
19
|
end
|
20
|
-
# test
|
20
|
+
# test </*snip*> test
|
21
21
|
|
22
22
|
def pick_an_orange!
|
@@ -1,17 +1,17 @@
|
|
1
|
-
|
1
|
+
#<*$*> Title ggg
|
2
2
|
def method
|
3
3
|
"code"
|
4
4
|
end
|
5
|
-
|
5
|
+
#</*$*>
|
6
6
|
|
7
|
-
|
7
|
+
#<*$*> Title 2323
|
8
8
|
def method
|
9
9
|
"code"
|
10
10
|
end
|
11
|
-
|
11
|
+
#</*$*>
|
12
12
|
|
13
|
-
|
13
|
+
#<*$*> Title 4
|
14
14
|
def method
|
15
15
|
"code"
|
16
16
|
end
|
17
|
-
|
17
|
+
#</*$*>
|
data/snip.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
# spec.executables = ["snip"]
|
18
18
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
19
19
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
20
|
-
spec.require_paths = ["lib", "db", "config", "app"]
|
20
|
+
spec.require_paths = ["lib", "db", "config", "app", "log"]
|
21
21
|
|
22
22
|
spec.add_development_dependency "bundler", "~> 1.7"
|
23
23
|
spec.add_development_dependency "rake", "~> 10.0"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: snipgem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jgerminario
|
@@ -79,6 +79,7 @@ files:
|
|
79
79
|
- config/filepath.config
|
80
80
|
- lib/snip.rb
|
81
81
|
- lib/snip/version.rb
|
82
|
+
- log/snip.log
|
82
83
|
- my_snips.rb
|
83
84
|
- pkg/snip-0.0.1.gem
|
84
85
|
- rspec/rspec.rb
|
@@ -99,6 +100,7 @@ require_paths:
|
|
99
100
|
- db
|
100
101
|
- config
|
101
102
|
- app
|
103
|
+
- log
|
102
104
|
required_ruby_version: !ruby/object:Gem::Requirement
|
103
105
|
requirements:
|
104
106
|
- - '>='
|