delicious_adder 0.1.0 → 0.2.1

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.
data/.gitignore ADDED
@@ -0,0 +1 @@
1
+ pkg
data/CHANGELOG ADDED
@@ -0,0 +1,2 @@
1
+ *0.2.0*
2
+ * Use a pipe to OSAScript rather than a temporary file *
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.2.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{delicious_adder}
8
- s.version = "0.1.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Simon Jefford"]
@@ -19,7 +19,9 @@ Gem::Specification.new do |s|
19
19
  "README.rdoc"
20
20
  ]
21
21
  s.files = [
22
- "Gemfile",
22
+ ".gitignore",
23
+ "CHANGELOG",
24
+ "Gemfile",
23
25
  "Gemfile.lock",
24
26
  "LICENSE",
25
27
  "README.rdoc",
data/lib/lookup.rb CHANGED
@@ -8,9 +8,7 @@ tell first document of application "Delicious Library 2"
8
8
  end tell
9
9
  CMDEND
10
10
  puts cmdline
11
- #TODO - pipe this through osascript rather than save it to a file
12
- open("script.txt", "w") { |io| io.write(cmdline) }
13
- system "osascript script.txt"
11
+ open("|osascript -", "w") { |io| io.write(cmdline) }
14
12
  params[:barcode]
15
13
  end
16
14
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delicious_adder
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
+ - 2
8
9
  - 1
9
- - 0
10
- version: 0.1.0
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Simon Jefford
@@ -56,6 +56,8 @@ extra_rdoc_files:
56
56
  - LICENSE
57
57
  - README.rdoc
58
58
  files:
59
+ - .gitignore
60
+ - CHANGELOG
59
61
  - Gemfile
60
62
  - Gemfile.lock
61
63
  - LICENSE