snipgem 0.0.5 → 0.0.6

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: 900f13cdab2b7bc759bf4d189b8b3ff6548becfa
4
- data.tar.gz: c8e4ce5352867021b0f7f2a57dcdbc9fbf640bde
3
+ metadata.gz: 720f143a8d4069abd9084abd3a0f9979c1510999
4
+ data.tar.gz: 8495985a717bbc34bbbb0081392adad6a61e1134
5
5
  SHA512:
6
- metadata.gz: 2d73b6b38d8dc5fab8d306b5e0097b8201f73e31dde617c497d5c211d089dd860c79aea118365741682c5234e392d35d1a966c344de2d7d0d4cf79ec4feb77c9
7
- data.tar.gz: 4cd33c7bd54192de3050760eb422fb4fe53d0bed91bd9ecbc8159ff82c596c5e3e4ef9b770fd964110947ebcb62d8ef6f9254bfdb89e4a7f8f379398ca5f6575
6
+ metadata.gz: 9ec924525d28ce831c5b4b80ea447be81c55f89539b1e0f44db255e26ee9190ccbe90292f8fa846e3c81a7150cf2a57298214a5580a52614f56e6daa20054f24
7
+ data.tar.gz: 45ba16a5acf4b3a55546d6fa8f7b3cea753997a903736663ab2d5816b340c34ec6378996a9b028d2a61f3d919b040667859a1671b55f51ed777cb56cd4803cde
@@ -26,7 +26,7 @@ module DestinationFileWriter
26
26
  if File.exist?(snip_filepath)
27
27
  @snip_file_name = snip_filepath
28
28
  else
29
- abort(ViewFormatter.output_file_not_found(snip_file))
29
+ abort(ViewFormatter.output_file_not_found(snip_filepath))
30
30
  end
31
31
  end
32
32
 
@@ -79,7 +79,7 @@ JS:
79
79
  var test = 1234;
80
80
  // </snip>
81
81
 
82
- You can alternately use <$> and </$>. Your tags will be replaced with <*snip*> and/or <*$*> after running 'snip'.
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
@@ -1,3 +1,3 @@
1
1
  module Snip
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
data/log/snip.log ADDED
File without changes
data/pkg/snip-0.0.1.gem CHANGED
Binary file
@@ -1,31 +1,31 @@
1
- # <snip> Title of first snip
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
- # </snip>
7
+ # </*snip*>
8
8
 
9
- # <snip> Title of this snip
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
- # </snip>
15
+ # </*snip*>
16
16
 
17
- # <snip> Title of first snip
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
- # </snip>
23
+ # </*snip*>
24
24
 
25
- # <snip> Title of this snip
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
- # </snip>
31
+ # </*snip*>
@@ -1,22 +1,22 @@
1
- # <snip>
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
- #</snip>
8
+ #</*snip*>
9
9
 
10
- # test <snip> TITLE
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
- #</snip>
14
+ #</*snip*>
15
15
 
16
- # ewre w<snip> test
16
+ # ewre w<*snip*> test
17
17
  def any_oranges?
18
18
  !@oranges.empty?
19
19
  end
20
- # test </snip> test
20
+ # test </*snip*> test
21
21
 
22
22
  def pick_an_orange!
@@ -1,17 +1,17 @@
1
- #<$> Title ggg
1
+ #<*$*> Title ggg
2
2
  def method
3
3
  "code"
4
4
  end
5
- #</$>
5
+ #</*$*>
6
6
 
7
- #<$> Title 2323
7
+ #<*$*> Title 2323
8
8
  def method
9
9
  "code"
10
10
  end
11
- #</$>
11
+ #</*$*>
12
12
 
13
- #<$> Title 4
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.5
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
  - - '>='