clipboard 1.0.2 → 1.0.3

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.
@@ -1,3 +1,6 @@
1
+ == 1.0.3
2
+ * Don't load current version from file (gh#15)
3
+
1
4
  == 1.0.2
2
5
  * Add missing require 'rbconfig'
3
6
  * File backend: File only accessible by owner
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- clipboard (1.0.2)
4
+ clipboard (1.0.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,9 +1,12 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  require 'rubygems' unless defined? Gem
3
3
 
4
+ $:.unshift File.expand_path("../lib", __FILE__)
5
+ require 'clipboard/version'
6
+
4
7
  Gem::Specification.new do |s|
5
8
  s.name = 'clipboard'
6
- s.version = File.read('VERSION').chomp
9
+ s.version = Clipboard::VERSION
7
10
 
8
11
  s.authors = ["Jan Lelis"]
9
12
  s.summary = 'Easy access to the clipboard on Linux, MacOS and Windows.'
@@ -1,10 +1,9 @@
1
1
  require 'rbconfig'
2
+ require_relative 'clipboard/version'
2
3
 
3
4
  module Clipboard
4
5
  extend self
5
6
 
6
- VERSION = File.read( (File.dirname(__FILE__) + '/../VERSION') ).chomp
7
-
8
7
  class ClipboardLoadError < Exception
9
8
  end
10
9
 
@@ -0,0 +1,3 @@
1
+ module Clipboard
2
+ VERSION = "1.0.3"
3
+ end
@@ -1,3 +1,3 @@
1
1
  $LOAD_PATH.unshift 'lib'
2
2
  require 'clipboard'
3
- require 'clipboard/file'
3
+ require 'clipboard/file'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clipboard
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-21 00:00:00.000000000 Z
12
+ date: 2013-04-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -51,6 +51,7 @@ extensions: []
51
51
  extra_rdoc_files: []
52
52
  files:
53
53
  - lib/clipboard.rb
54
+ - lib/clipboard/version.rb
54
55
  - lib/clipboard/linux.rb
55
56
  - lib/clipboard/file.rb
56
57
  - lib/clipboard/mac.rb
@@ -63,7 +64,6 @@ files:
63
64
  - LICENSE
64
65
  - Gemfile.lock
65
66
  - README.rdoc
66
- - VERSION
67
67
  - CHANGELOG.rdoc
68
68
  - clipboard.gemspec
69
69
  - .gemtest
@@ -84,7 +84,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
84
84
  version: '0'
85
85
  segments:
86
86
  - 0
87
- hash: 3553231034075913776
87
+ hash: -2900445585739942679
88
88
  required_rubygems_version: !ruby/object:Gem::Requirement
89
89
  none: false
90
90
  requirements:
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  version: '0'
94
94
  segments:
95
95
  - 0
96
- hash: 3553231034075913776
96
+ hash: -2900445585739942679
97
97
  requirements:
98
98
  - ! 'On Linux (or other X), you need xclip. You can install it on debian/ubuntu with:
99
99
  sudo apt-get install xclip'
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 1.0.2