konjac 0.2.9.2 → 0.2.9.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -87,34 +87,38 @@ to import(filename)
87
87
 
88
88
  -- write if we've moved to a new tag or reached the end of the file
89
89
  if text_content is not "" and (tag_index is tag_length or is_new_tag)
90
- set current_content to text object of paragraph prev_paragraph_index ¬
91
- of active document
92
- set my_range to create range active document ¬
93
- start (start of content of current_content) ¬
94
- end (end of content of current_content)
95
-
96
- select my_range
97
-
98
- -- FIXME: this is super-ugly
99
- if count of paragraphs of selection is greater than 1
90
+ try
91
+ set current_content to text object of paragraph prev_paragraph_index ¬
92
+ of active document
100
93
  set my_range to create range active document ¬
101
- start (start of content of text object of selection) ¬
102
- end ((end of content of text object of selection) - 1)
103
- select my_range
104
- repeat while (count of paragraphs of selection is greater than 1)
105
- selection move start of range by a line item
106
- end repeat
107
- end if
94
+ start (start of content of current_content) ¬
95
+ end (end of content of current_content)
108
96
 
109
- repeat while my ends_with_forbidden_character(content of selection as text)
110
- set my_range to create range active document ¬
111
- start (start of content of text object of selection) ¬
112
- end ((end of content of text object of selection) - 1)
113
97
  select my_range
114
- end repeat
115
98
 
116
- type text selection text text_content
117
- set text_content to ""
99
+ -- FIXME: this is super-ugly
100
+ if count of paragraphs of selection is greater than 1
101
+ set my_range to create range active document ¬
102
+ start (start of content of text object of selection) ¬
103
+ end ((end of content of text object of selection) - 1)
104
+ select my_range
105
+ repeat while (count of paragraphs of selection is greater than 1)
106
+ -- maybe?
107
+ my_range move start of range by a line item
108
+ select my_range
109
+ end repeat
110
+ end if
111
+
112
+ repeat while my ends_with_forbidden_character(content of selection as text)
113
+ set my_range to create range active document ¬
114
+ start (start of content of text object of selection) ¬
115
+ end ((end of content of text object of selection) - 1)
116
+ select my_range
117
+ end repeat
118
+
119
+ type text selection text text_content
120
+ set text_content to ""
121
+ end try
118
122
  end if
119
123
  end repeat
120
124
  end tell
@@ -1,4 +1,4 @@
1
1
  module Konjac
2
2
  # The current version number of Konjac
3
- VERSION = "0.2.9.2"
3
+ VERSION = "0.2.9.3"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: konjac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9.2
4
+ version: 0.2.9.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-05 00:00:00.000000000 Z
12
+ date: 2012-02-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: amatch
16
- requirement: &70118068632120 !ruby/object:Gem::Requirement
16
+ requirement: &70230861618960 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70118068632120
24
+ version_requirements: *70230861618960
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: git
27
- requirement: &70118068631540 !ruby/object:Gem::Requirement
27
+ requirement: &70230861617640 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70118068631540
35
+ version_requirements: *70230861617640
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: highline
38
- requirement: &70118068631120 !ruby/object:Gem::Requirement
38
+ requirement: &70230861616460 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70118068631120
46
+ version_requirements: *70230861616460
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: i18n
49
- requirement: &70118068630440 !ruby/object:Gem::Requirement
49
+ requirement: &70230861613780 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70118068630440
57
+ version_requirements: *70230861613780
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: nokogiri
60
- requirement: &70118068629800 !ruby/object:Gem::Requirement
60
+ requirement: &70230861611280 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70118068629800
68
+ version_requirements: *70230861611280
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: sdoc
71
- requirement: &70118068629120 !ruby/object:Gem::Requirement
71
+ requirement: &70230861608880 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *70118068629120
79
+ version_requirements: *70230861608880
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: term-ansicolor
82
- requirement: &70118068628240 !ruby/object:Gem::Requirement
82
+ requirement: &70230861607840 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: '0'
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *70118068628240
90
+ version_requirements: *70230861607840
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: trollop
93
- requirement: &70118068627360 !ruby/object:Gem::Requirement
93
+ requirement: &70230861607280 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ! '>='
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: '0'
99
99
  type: :runtime
100
100
  prerelease: false
101
- version_requirements: *70118068627360
101
+ version_requirements: *70230861607280
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: autotest
104
- requirement: &70118068626760 !ruby/object:Gem::Requirement
104
+ requirement: &70230861605980 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ! '>='
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: '0'
110
110
  type: :development
111
111
  prerelease: false
112
- version_requirements: *70118068626760
112
+ version_requirements: *70230861605980
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: autotest-fsevent
115
- requirement: &70118068626100 !ruby/object:Gem::Requirement
115
+ requirement: &70230861604580 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ! '>='
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: '0'
121
121
  type: :development
122
122
  prerelease: false
123
- version_requirements: *70118068626100
123
+ version_requirements: *70230861604580
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: autotest-growl
126
- requirement: &70118068625460 !ruby/object:Gem::Requirement
126
+ requirement: &70230861602320 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ! '>='
@@ -131,10 +131,10 @@ dependencies:
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
- version_requirements: *70118068625460
134
+ version_requirements: *70230861602320
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: bundler
137
- requirement: &70118068625040 !ruby/object:Gem::Requirement
137
+ requirement: &70230861600480 !ruby/object:Gem::Requirement
138
138
  none: false
139
139
  requirements:
140
140
  - - ! '>='
@@ -142,10 +142,10 @@ dependencies:
142
142
  version: '0'
143
143
  type: :development
144
144
  prerelease: false
145
- version_requirements: *70118068625040
145
+ version_requirements: *70230861600480
146
146
  - !ruby/object:Gem::Dependency
147
147
  name: rspec
148
- requirement: &70118068624620 !ruby/object:Gem::Requirement
148
+ requirement: &70230861599620 !ruby/object:Gem::Requirement
149
149
  none: false
150
150
  requirements:
151
151
  - - ! '>='
@@ -153,7 +153,7 @@ dependencies:
153
153
  version: '0'
154
154
  type: :development
155
155
  prerelease: false
156
- version_requirements: *70118068624620
156
+ version_requirements: *70230861599620
157
157
  description: A Ruby command-line utility for translating files using a YAML wordlist
158
158
  email:
159
159
  - bryan.mckelvey@gmail.com