rescpos 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,13 +1,4 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- group :test do
4
- gem 'rspec-instafail'
5
- gem 'cucumber'
6
- gem 'rspec'
7
- gem 'guard-bundler'
8
- gem 'guard-cucumber'
9
- gem 'guard-rspec'
10
- end
11
-
12
3
  # Specify your gem's dependencies in rescpos.gemspec
13
4
  gemspec
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rescpos (0.0.1)
4
+ rescpos (0.0.2)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -13,7 +13,8 @@ GEM
13
13
  gherkin (~> 2.4.5)
14
14
  json (>= 1.4.6)
15
15
  term-ansicolor (>= 1.0.5)
16
- diff-lcs (1.1.2)
16
+ diff-lcs (1.1.3)
17
+ ffi (1.0.9)
17
18
  gherkin (2.4.16)
18
19
  json (>= 1.4.6)
19
20
  guard (0.6.2)
@@ -27,6 +28,9 @@ GEM
27
28
  guard-rspec (0.4.3)
28
29
  guard (>= 0.4.0)
29
30
  json (1.5.3)
31
+ libnotify (0.5.7)
32
+ rb-inotify (0.8.6)
33
+ ffi (>= 0.5.0)
30
34
  rspec (2.6.0)
31
35
  rspec-core (~> 2.6.0)
32
36
  rspec-expectations (~> 2.6.0)
@@ -47,6 +51,8 @@ DEPENDENCIES
47
51
  guard-bundler
48
52
  guard-cucumber
49
53
  guard-rspec
54
+ libnotify
55
+ rb-inotify
50
56
  rescpos!
51
57
  rspec
52
58
  rspec-instafail
@@ -11,7 +11,7 @@ When /^I render the titled report with the given template$/ do
11
11
  end
12
12
 
13
13
  Then /^I will see "([^"]*)"$/ do |title|
14
- @output.should == title
14
+ @output.should be_include(title)
15
15
  end
16
16
 
17
17
  Given /^"([^"]*)" is a template directory$/ do |path|
@@ -1,3 +1,3 @@
1
1
  module Rescpos
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/rescpos.gemspec CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
7
7
  s.version = Rescpos::VERSION
8
8
  s.authors = ["Tower He"]
9
9
  s.email = ["towerhe@gmail.com"]
10
- s.homepage = ""
10
+ s.homepage = "https://github.com/towerhe/rescpos"
11
11
  s.summary = %q{A ruby implementation of the Line Thermal Printer ESC/POS Command Specifications.}
12
12
  s.description = %q{Print formatted docs with Winpos WP-800}
13
13
 
@@ -21,4 +21,13 @@ Gem::Specification.new do |s|
21
21
  # specify any dependencies here; for example:
22
22
  # s.add_development_dependency "rspec"
23
23
  # s.add_runtime_dependency "rest-client"
24
+
25
+ s.add_development_dependency 'rb-inotify'
26
+ s.add_development_dependency 'libnotify'
27
+ s.add_development_dependency 'rspec-instafail'
28
+ s.add_development_dependency 'cucumber'
29
+ s.add_development_dependency 'rspec'
30
+ s.add_development_dependency 'guard-bundler'
31
+ s.add_development_dependency 'guard-cucumber'
32
+ s.add_development_dependency 'guard-rspec'
24
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rescpos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,95 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
  date: 2011-08-28 00:00:00.000000000Z
13
- dependencies: []
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rb-inotify
16
+ requirement: &80126060 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: *80126060
25
+ - !ruby/object:Gem::Dependency
26
+ name: libnotify
27
+ requirement: &80125540 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *80125540
36
+ - !ruby/object:Gem::Dependency
37
+ name: rspec-instafail
38
+ requirement: &80124890 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :development
45
+ prerelease: false
46
+ version_requirements: *80124890
47
+ - !ruby/object:Gem::Dependency
48
+ name: cucumber
49
+ requirement: &80124110 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: *80124110
58
+ - !ruby/object:Gem::Dependency
59
+ name: rspec
60
+ requirement: &80123580 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ type: :development
67
+ prerelease: false
68
+ version_requirements: *80123580
69
+ - !ruby/object:Gem::Dependency
70
+ name: guard-bundler
71
+ requirement: &80122640 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: *80122640
80
+ - !ruby/object:Gem::Dependency
81
+ name: guard-cucumber
82
+ requirement: &80121900 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: *80121900
91
+ - !ruby/object:Gem::Dependency
92
+ name: guard-rspec
93
+ requirement: &80121130 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ type: :development
100
+ prerelease: false
101
+ version_requirements: *80121130
14
102
  description: Print formatted docs with Winpos WP-800
15
103
  email:
16
104
  - towerhe@gmail.com
@@ -29,11 +117,9 @@ files:
29
117
  - examples/escposes/dish_item.escpos.erb
30
118
  - examples/print.rb
31
119
  - examples/reports/dish_item_report.rb
32
- - features/printer.feature
33
120
  - features/render_report.feature
34
121
  - features/step_definitions/.gitkeep
35
122
  - features/step_definitions/common_steps.rb
36
- - features/step_definitions/printer_steps.rb
37
123
  - features/step_definitions/report_steps.rb
38
124
  - features/support/env.rb
39
125
  - lib/core_ext/string.rb
@@ -52,7 +138,7 @@ files:
52
138
  - spec/lib/rescpos/report_util_spec.rb
53
139
  - spec/reports/titled.escpos.erb
54
140
  - spec/spec_helper.rb
55
- homepage: ''
141
+ homepage: https://github.com/towerhe/rescpos
56
142
  licenses: []
57
143
  post_install_message:
58
144
  rdoc_options: []
@@ -1,4 +0,0 @@
1
- Feature: Printer
2
- Scenario: Connect and disconnect printer
3
- Given I have a printer with ip "192.168.1.3" and port "9100"
4
- When I connect the printer
@@ -1,7 +0,0 @@
1
- Given /^I have a printer with ip "([^"]*)" and port "([^"]*)"$/ do |ip, port|
2
- @printer = Rescpos::Printer.new(ip, port)
3
- end
4
-
5
- When /^I connect the printer$/ do
6
- @client = @printer.connect()
7
- end