funl 0.1 → 0.2

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: 015bd0c0d3e5537bb8beeda5ccd1aa7502dd66c5
4
- data.tar.gz: c5ce417f5a23cfce7a9d9aa920b6a65cc405dfff
3
+ metadata.gz: bef263a447c026a1fdf3e7597c0e36b9b2d6c0ab
4
+ data.tar.gz: af313f5626ae330a3392ee84824074303f6dc141
5
5
  SHA512:
6
- metadata.gz: ccf71263bcda9155f8733c2a7f7adc0d23d526af9af16faa75ba0fed4fc4f59885444d2782550283aa52a7ec0e8c77435bb1aca9752d60ae349f00ebc73629dc
7
- data.tar.gz: 10f240e8925c2aa63f21ac05f5ca12871d0df7f10d775e741019ecc1a889e927b57fdb183e211f4a4ce76b1c471883ec8b1f5222b57dd4b9ed899fe1b409268b
6
+ metadata.gz: 832827e2caa92174648705c8a406b61a8b1d4b4847e543cf8b0a36598ee6cbfb3c6c524f34c696ab7508fd6571607026614e12298cdb6ef80d0c4732041b9f0f
7
+ data.tar.gz: b3a1d31d1af4122f644c7543e803b5ce612f2cdf3929372c365522948cac93b91a1eaaf8491b8929fb88c2f951669fff0f65d2d0c75e958151086387484d02a9
data/Rakefile CHANGED
@@ -1,9 +1,30 @@
1
1
  require 'rake'
2
2
  require 'rake/testtask'
3
3
 
4
+ def version
5
+ require 'funl/version'
6
+ @version ||= Funl::VERSION
7
+ end
8
+
9
+ prj = "funl"
10
+
4
11
  desc "Run tests"
5
12
  Rake::TestTask.new :test do |t|
6
13
  t.libs << "lib"
7
14
  t.libs << "ext"
8
15
  t.test_files = FileList["test/**/*.rb"]
9
16
  end
17
+
18
+ desc "commit, tag, and push repo; build and push gem"
19
+ task :release do
20
+ tag = "#{prj}-#{version}"
21
+
22
+ sh "gem build #{prj}.gemspec"
23
+
24
+ sh "git commit -a -m 'release #{version}'"
25
+ sh "git tag #{prj}-#{version}"
26
+ sh "git push"
27
+ sh "git push --tags"
28
+
29
+ sh "gem push #{prj}-#{version}.gem"
30
+ end
data/lib/funl/client.rb CHANGED
@@ -45,7 +45,7 @@ module Funl
45
45
  end
46
46
 
47
47
  def cseq_read_client_id
48
- log.info "getting client_id from cseq"
48
+ log.debug "getting client_id from cseq"
49
49
  @client_id = cseq.read["client_id"]
50
50
  log.info "client_id = #{client_id}"
51
51
  cseq.close rescue nil
@@ -53,7 +53,7 @@ module Funl
53
53
  end
54
54
 
55
55
  def seq_read_greeting
56
- log.info "getting greeting from seq"
56
+ log.debug "getting greeting from seq"
57
57
  @greeting = seq.read
58
58
  @start_tick = greeting["tick"]
59
59
  log.info "start_tick = #{start_tick}"
@@ -49,7 +49,7 @@ module Funl
49
49
  stream = message_server_stream_for(conn)
50
50
  current_greeting = greeting.merge({"tick" => tick})
51
51
  if write_succeeds?(current_greeting, stream)
52
- log.info "connected #{stream.inspect}"
52
+ log.debug "connected #{stream.inspect}"
53
53
  @streams << stream
54
54
  end
55
55
  end
@@ -78,7 +78,7 @@ module Funl
78
78
  when server
79
79
  begin
80
80
  conn, addr = readable.accept_nonblock
81
- log.info "accepted #{conn.inspect} from #{addr.inspect}"
81
+ log.debug "accepted #{conn.inspect} from #{addr.inspect}"
82
82
  try_conn conn
83
83
  rescue IO::WaitReadable
84
84
  next
@@ -0,0 +1,3 @@
1
+ module Funl
2
+ VERSION = "0.2"
3
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: funl
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: '0.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel VanderWerf
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-12 00:00:00.000000000 Z
11
+ date: 2013-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: object-stream
@@ -43,6 +43,7 @@ files:
43
43
  - lib/funl/message-sequencer.rb
44
44
  - lib/funl/client-sequencer.rb
45
45
  - lib/funl/message.rb
46
+ - lib/funl/version.rb
46
47
  - test/test-message-sequencer.rb
47
48
  - test/test-client-sequencer.rb
48
49
  - test/test-message.rb