my_help 0.7.3 → 0.7.4

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: 00ab80b795e0ce6aae70eedb6b7ba6ad160d6168
4
- data.tar.gz: 71a8f4988af8b59cd09c937d4bdb18caed8f9762
3
+ metadata.gz: 2e6d6ca957c9c34e26b3ebb6d6d6095b615ea60c
4
+ data.tar.gz: 6a88e85ba95c833e87aa9c6e85ebd0c0675fb65c
5
5
  SHA512:
6
- metadata.gz: 3afc448018c0b85438c1202ffa49419a8128a9cec80b79556bb16aa4311b8ed193d40cbeb9d170ddcca357220a85d085837af3df1922045fe3035803bf372cca
7
- data.tar.gz: ac79faa66dc78daf731f96f9d6b49b52694ebf02dd5d3267fa66ffe6503f22fe53b047458b6c492aee4b99395157ff4dfb9e3bf2e97a6a7c0ab0ac26fcdf46f8
6
+ metadata.gz: 9edaed7d25d60c3f641cbba6942ae6be29f98b64d130002c9964f79cf505e28fd6b19231d30bb6981ef4d1e7bf5c720ed20ed370e33f0e069c71a219329f3887
7
+ data.tar.gz: 10c8bd8e6e58796cab76efc5530fc2da9476e719e443e6642f816333bad6bf510b74c9e6aa0e85b42fc5a0a3c9e44b3dc9d043143f776a933af1ece137d7c0ef
data/Gemfile.lock CHANGED
@@ -1,54 +1,54 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- my_help (0.7.1)
4
+ my_help (0.7.3)
5
5
  colorize
6
6
  gli (= 2.17.1)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- aruba (0.14.5)
11
+ aruba (0.14.6)
12
12
  childprocess (>= 0.6.3, < 0.10.0)
13
13
  contracts (~> 0.9)
14
14
  cucumber (>= 1.3.19)
15
15
  ffi (~> 1.9.10)
16
16
  rspec-expectations (>= 2.99)
17
17
  thor (~> 0.19)
18
- backports (3.11.3)
18
+ backports (3.11.4)
19
19
  builder (3.2.3)
20
20
  childprocess (0.9.0)
21
21
  ffi (~> 1.0, >= 1.0.11)
22
22
  colorize (0.8.1)
23
23
  contracts (0.16.0)
24
- cucumber (3.1.0)
24
+ cucumber (3.1.2)
25
25
  builder (>= 2.1.2)
26
- cucumber-core (~> 3.1.0)
27
- cucumber-expressions (~> 5.0.4)
26
+ cucumber-core (~> 3.2.0)
27
+ cucumber-expressions (~> 6.0.1)
28
28
  cucumber-wire (~> 0.0.1)
29
29
  diff-lcs (~> 1.3)
30
- gherkin (~> 5.0)
30
+ gherkin (~> 5.1.0)
31
31
  multi_json (>= 1.7.5, < 2.0)
32
32
  multi_test (>= 0.1.2)
33
- cucumber-core (3.1.0)
33
+ cucumber-core (3.2.0)
34
34
  backports (>= 3.8.0)
35
35
  cucumber-tag_expressions (~> 1.1.0)
36
36
  gherkin (>= 5.0.0)
37
- cucumber-expressions (5.0.17)
37
+ cucumber-expressions (6.0.1)
38
38
  cucumber-tag_expressions (1.1.1)
39
39
  cucumber-wire (0.0.1)
40
40
  diff-lcs (1.3)
41
- ffi (1.9.23)
42
- gherkin (5.0.0)
41
+ ffi (1.9.25)
42
+ gherkin (5.1.0)
43
43
  gli (2.17.1)
44
44
  multi_json (1.13.1)
45
45
  multi_test (0.1.2)
46
46
  rake (12.3.1)
47
- rdoc (6.0.3)
48
- rspec-expectations (3.7.0)
47
+ rdoc (6.0.4)
48
+ rspec-expectations (3.8.1)
49
49
  diff-lcs (>= 1.2.0, < 2.0)
50
- rspec-support (~> 3.7.0)
51
- rspec-support (3.7.1)
50
+ rspec-support (~> 3.8.0)
51
+ rspec-support (3.8.0)
52
52
  thor (0.20.0)
53
53
 
54
54
  PLATFORMS
@@ -61,4 +61,4 @@ DEPENDENCIES
61
61
  rdoc
62
62
 
63
63
  BUNDLED WITH
64
- 1.16.1
64
+ 1.16.4
data/bin/my_help CHANGED
@@ -50,6 +50,23 @@ command :delete do |c|
50
50
  end
51
51
  end
52
52
 
53
+ desc 'tomo_upload HELP_NAME help'
54
+ arg_name 'HELP_NAME'
55
+ command :tomo_upload do |c|
56
+ c.action do |global_options,options,args|
57
+ $control.upload_help(args[0])
58
+ end
59
+ end
60
+
61
+ desc 'search FIND_CHAR'
62
+ arg_name = 'FIND_CHAR'
63
+ command :search do |c|
64
+ c.action do |global_options,options,args|
65
+ $control.search_help(args[0])
66
+ end
67
+ end
68
+
69
+
53
70
  pre do |global,command,options,args|
54
71
  $control = MyHelp::Control.new()
55
72
  true
data/lib/my_help.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'my_help/version.rb'
2
2
  require 'my_help/my_help_controll'
3
+ require 'my_help/tomo_help_controll'
3
4
  require 'my_help/org2yml'
4
5
  require 'colorize'
5
6
  # Add requires for other files you add to your project here, so
@@ -1,9 +1,11 @@
1
+ # -*- coding: utf-8 -*-
1
2
  module MyHelp
2
3
  class Control
3
4
  def initialize()
4
5
  @template_dir = File.expand_path("../../templates", __FILE__)
5
6
  @exe_dir = File.expand_path("../../exe", __FILE__)
6
7
  @local_help_dir = File.join(ENV['HOME'],'.my_help')
8
+ # @mini_account = File
7
9
  set_help_dir_if_not_exists
8
10
  end
9
11
 
@@ -112,6 +114,32 @@ module MyHelp
112
114
  end
113
115
  end
114
116
 
117
+ def upload_help(file)
118
+ p target_help = File.join(@local_help_dir,file+'.org')
119
+ puts "miniのuser_nameを入力してください."
120
+ p user_name = STDIN.gets.chomp
121
+ puts "保存するディレクトリ名を入力してください."
122
+ p directory_name = STDIN.gets.chomp
123
+ if local_help_entries.member?(file+'.org')
124
+ # if target_help.empty?(file+'.org')
125
+ # system "scp #{@local_help_dir} tomoko_y@mini:~/our_help/member/tomoko"
126
+ # else
127
+ system "scp #{target_help} #{user_name}@mini:~/our_help/member/#{directory_name}"
128
+ puts "後は,miniでgitにpushしてください."
129
+ # end
130
+ else
131
+ puts "file #{target_help} does not exits in #{@local_help_dir}."
132
+ puts "init #{file} first."
133
+ end
134
+ end
135
+
136
+ =begin
137
+ def search_help(file)
138
+ p find_char = STDIN.gets.chomp
139
+ system "ls #{@local_help_dir} | grep #{find_char}"
140
+ end
141
+ =end
142
+
115
143
  private
116
144
  def local_help_entries
117
145
  entries= []
File without changes
@@ -1,3 +1,3 @@
1
1
  module MyHelp
2
- VERSION = "0.7.3"
2
+ VERSION = "0.7.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: my_help
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Your Name Here
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-30 00:00:00.000000000 Z
11
+ date: 2019-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -106,6 +106,7 @@ files:
106
106
  - lib/my_help.rb
107
107
  - lib/my_help/my_help_controll.rb
108
108
  - lib/my_help/org2yml.rb
109
+ - lib/my_help/tomo_help_controll.rb
109
110
  - lib/my_help/version.rb
110
111
  - lib/templates/emacs.org
111
112
  - lib/templates/help_template.org