my_scripts 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY CHANGED
@@ -43,3 +43,7 @@
43
43
  == 0.1.8 / 2010-05-07
44
44
 
45
45
  * Gitto refactored
46
+
47
+ == 0.1.9 / 2010-05-28
48
+
49
+ * MSDN: [in] to <in> convertation added
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.8
1
+ 0.1.9
@@ -3,7 +3,9 @@ module MyScripts
3
3
  # initiate remote repo on github
4
4
  #
5
5
  class Bon < Script
6
+ VERSION = '0.1.0'
6
7
  DEFAULT_SKELETON = 'basic'
8
+
7
9
  def run
8
10
  usage "name Summary or description goes here" if @argv.empty?
9
11
 
@@ -4,6 +4,8 @@ module MyScripts
4
4
  # import into Quicken
5
5
  #
6
6
  class Citi < Script
7
+ VERSION = '0.1.0'
8
+
7
9
  INFILE_ENCODING = 'CP1251:UTF-8' # Encoding pair of input file ('File external:Ruby internal')
8
10
  OUTFILE_ENCODING = 'CP1252:UTF-8' # Encoding pair of output file ('File external:Ruby internal')
9
11
  # STDOUT_ENCODING = 'CP866:UTF-8' # Encoding pair of stdout ('Stdout external:Ruby internal')
@@ -4,7 +4,9 @@ module MyScripts
4
4
  # optionally bumps project version and pushes changes to remote repo
5
5
  #
6
6
  class Gitto < Script
7
- VERSION_PATTERN = /^(\d+\.\d+\.\d+ # either explicit version (1.2.3)
7
+ VERSION = '0.1.0'
8
+
9
+ COMMAND_PATTERN = /^(\d+\.\d+\.\d+ # either explicit version (1.2.3)
8
10
  (?:\.(.*?))? # possibly followed by .build
9
11
  |\.(.*?) # or, just .build
10
12
  |\d{1}0{0,2})$/x # or, one digit followed by 0-2 zeroes (100/10/1 - bump major/minor/patch)
@@ -13,7 +15,7 @@ module MyScripts
13
15
  usage "[0.1.2 - version, 100/10/1 - bump major/minor/patch, .build - add build] Commit message goes here" if @argv.empty?
14
16
 
15
17
  # First Arg may indicate version command if it matches pattern
16
- version_command = @argv[0] =~ VERSION_PATTERN ? @argv.shift : nil
18
+ version_command = @argv[0] =~ COMMAND_PATTERN ? @argv.shift : nil
17
19
 
18
20
  # All the other args lumped into message, or default message
19
21
  if @argv.empty?
@@ -33,7 +35,6 @@ module MyScripts
33
35
  end
34
36
  end
35
37
 
36
-
37
38
  puts "Adding all the changes"
38
39
  system %Q{git add --all}
39
40
 
@@ -3,6 +3,8 @@ module MyScripts
3
3
  # initiate remote repo on github
4
4
  #
5
5
  class Jew < Script
6
+ VERSION = '0.1.0'
7
+
6
8
  def run
7
9
  usage "project_name Summary or description goes here" if @argv.empty?
8
10
 
@@ -1,3 +1,6 @@
1
+ #!/usr/bin/env ruby #
2
+
3
+
1
4
  # Make sure Strings respond to snake_case (even if this helper is called out of containing lib context)
2
5
  # This is needed when this file is required by RubyMine script "msdn_converter.rb"
3
6
  unless "".respond_to? :snake_case
@@ -75,6 +78,7 @@ module MyScripts
75
78
  /^Members\s*/m => "\n",
76
79
  /^Return Value\n\s*/m => "\n*Returns*:: ",
77
80
  /^Remarks\s*/m => "---\n*Remarks*:\n",
81
+ /\[(in|out|in,.?out)\]/ => '<\1>',
78
82
  }
79
83
  replace.each {|from, to| text.gsub!( from, to)}
80
84
 
@@ -1,6 +1,8 @@
1
1
  module MyScripts
2
2
  # Starts and controls rabbitmq server
3
3
  class Rabbit < Script
4
+ VERSION = '0.1.0'
5
+
4
6
  def run
5
7
  error 'ERLANG_HOME not set' unless ENV['ERLANG_HOME']
6
8
  rabbit_hole = ENV['ERLANG_HOME'] + '/lib/rabbitmq_server-1.7.0/sbin'
@@ -5,6 +5,8 @@ module MyScripts
5
5
  # forced screen saver after 5 minutes of inactivity you'd feel the pain...
6
6
  #
7
7
  class Wake < Script
8
+ VERSION = '0.1.0'
9
+
8
10
  SLEEP_TIME = 4 * 60 # seconds
9
11
 
10
12
  def initialize( name, argv, cli )
@@ -18,53 +18,11 @@ pidInst
18
18
  If pidInst points to a nonzero value, reinitialization of the DDEML is implied. In this case, pidInst must point to a valid application-instance identifier.
19
19
 
20
20
  pfnCallback
21
- [in] Pointer to the application-defined Dynamic Data Exchange (DDE) callback function. This function processes DDE transactions sent by the system. For more information, see the DdeCallback callback function.
21
+ [out] Pointer to the application-defined Dynamic Data Exchange (DDE) callback function. This function processes DDE transactions sent by the system. For more information, see the DdeCallback callback function.
22
22
  afCmd
23
23
  [in] Specifies a set of APPCMD_, CBF_, and MF_ flags. The APPCMD_ flags provide special instructions to DdeInitialize. The CBF_ flags specify filters that prevent specific types of transactions from reaching the callback function. The MF_ flags specify the types of DDE activity that a DDE monitoring application monitors. Using these flags enhances the performance of a DDE application by eliminating unnecessary calls to the callback function.
24
24
  This parameter can be one or more of the following values.
25
25
 
26
- APPCLASS_MONITOR
27
- Makes it possible for the application to monitor DDE activity in the system. This flag is for use by DDE monitoring applications. The application specifies the types of DDE activity to monitor by combining one or more monitor flags with the APPCLASS_MONITOR flag. For details, see the following Remarks section.
28
- APPCLASS_STANDARD
29
- Registers the application as a standard (nonmonitoring) DDEML application.
30
- APPCMD_CLIENTONLY
31
- Prevents the application from becoming a server in a DDE conversation. The application can only be a client. This flag reduces consumption of resources by the DDEML. It includes the functionality of the CBF_FAIL_ALLSVRXACTIONS flag.
32
- APPCMD_FILTERINITS
33
- Prevents the DDEML from sending XTYP_CONNECT and XTYP_WILDCONNECT transactions to the application until the application has created its string handles and registered its service names or has turned off filtering by a subsequent call to the DdeNameService or DdeInitialize function. This flag is always in effect when an application calls DdeInitialize for the first time, regardless of whether the application specifies the flag. On subsequent calls to DdeInitialize, not specifying this flag turns off the application's service-name filters, but specifying it turns on the application's service name filters.
34
- CBF_FAIL_ALLSVRXACTIONS
35
- Prevents the callback function from receiving server transactions. The system returns DDE_FNOTPROCESSED to each client that sends a transaction to this application. This flag is equivalent to combining all CBF_FAIL_ flags.
36
- CBF_FAIL_ADVISES
37
- Prevents the callback function from receiving XTYP_ADVSTART and XTYP_ADVSTOP transactions. The system returns DDE_FNOTPROCESSED to each client that sends an XTYP_ADVSTART or XTYP_ADVSTOP transaction to the server.
38
- CBF_FAIL_CONNECTIONS
39
- Prevents the callback function from receiving XTYP_CONNECT and XTYP_WILDCONNECT transactions.
40
- CBF_FAIL_EXECUTES
41
- Prevents the callback function from receiving XTYP_EXECUTE transactions. The system returns DDE_FNOTPROCESSED to a client that sends an XTYP_EXECUTE transaction to the server.
42
- CBF_FAIL_POKES
43
- Prevents the callback function from receiving XTYP_POKE transactions. The system returns DDE_FNOTPROCESSED to a client that sends an XTYP_POKE transaction to the server.
44
- CBF_FAIL_REQUESTS
45
- Prevents the callback function from receiving XTYP_REQUEST transactions. The system returns DDE_FNOTPROCESSED to a client that sends an XTYP_REQUEST transaction to the server.
46
- CBF_FAIL_SELFCONNECTIONS
47
- Prevents the callback function from receiving XTYP_CONNECT transactions from the application's own instance. This flag prevents an application from establishing a DDE conversation with its own instance. An application should use this flag if it needs to communicate with other instances of itself but not with itself.
48
- CBF_SKIP_ALLNOTIFICATIONS
49
- Prevents the callback function from receiving any notifications. This flag is equivalent to combining all CBF_SKIP_ flags.
50
- CBF_SKIP_CONNECT_CONFIRMS
51
- Prevents the callback function from receiving XTYP_CONNECT_CONFIRM notifications.
52
- CBF_SKIP_DISCONNECTS
53
- Prevents the callback function from receiving XTYP_DISCONNECT notifications.
54
- CBF_SKIP_REGISTRATIONS
55
- Prevents the callback function from receiving XTYP_REGISTER notifications.
56
- CBF_SKIP_UNREGISTRATIONS
57
- Prevents the callback function from receiving XTYP_UNREGISTER notifications.
58
- MF_CALLBACKS
59
- Notifies the callback function whenever a transaction is sent to any DDE callback function in the system.
60
- MF_CONV
61
- Notifies the callback function whenever a conversation is established or terminated.
62
- MF_ERRORS
63
- Notifies the callback function whenever a DDE error occurs.
64
- MF_HSZ_INFO
65
- Notifies the callback function whenever a DDE application creates, frees, or increments the usage count of a string handle or whenever a string handle is freed as a result of a call to the DdeUninitialize function.
66
- MF_LINKS
67
- Notifies the callback function whenever an advise loop is started or ended.
68
26
  MF_POSTMSGS
69
27
  Notifies the callback function whenever the system or an application posts a DDE message.
70
28
  MF_SENDMSGS
@@ -77,14 +35,8 @@ Return Value
77
35
  If the function succeeds, the return value is DMLERR_NO_ERROR.
78
36
 
79
37
  If the function fails, the return value is one of the following values:
80
-
81
-
82
- DMLERR_DLL_USAGE
83
- DMLERR_INVALIDPARAMETER
84
38
  DMLERR_SYS_ERROR
85
39
 
86
-
87
-
88
40
  Remarks
89
41
 
90
42
  An application that uses multiple instances of the DDEML must not pass DDEML objects between instances.
@@ -7,7 +7,7 @@
7
7
  #
8
8
  # [*Syntax*] UINT DdeInitialize( LPDWORD pidInst, PFNCALLBACK pfnCallback, DWORD afCmd, DWORD ulRes );
9
9
  #
10
- # pidInst:: [in, out] Pointer to the application instance identifier. At initialization, this parameter
10
+ # pidInst:: <in, out> Pointer to the application instance identifier. At initialization, this parameter
11
11
  # should point to 0. If the function succeeds, this parameter points to the instance
12
12
  # identifier for the application. This value should be passed as the idInst parameter in all
13
13
  # other DDEML functions that require it. If an application uses multiple instances of the
@@ -15,82 +15,15 @@
15
15
  # function for each instance.
16
16
  # If pidInst points to a nonzero value, reinitialization of the DDEML is implied. In this case, pidInst
17
17
  # must point to a valid application-instance identifier.
18
- # pfnCallback:: [in] Pointer to the application-defined Dynamic Data Exchange (DDE) callback function.
18
+ # pfnCallback:: <out> Pointer to the application-defined Dynamic Data Exchange (DDE) callback function.
19
19
  # This function processes DDE transactions sent by the system. For more information, see
20
20
  # the DdeCallback callback function.
21
- # afCmd:: [in] Specifies a set of APPCMD_, CBF_, and MF_ flags. The APPCMD_ flags provide special
21
+ # afCmd:: <in> Specifies a set of APPCMD_, CBF_, and MF_ flags. The APPCMD_ flags provide special
22
22
  # instructions to DdeInitialize. The CBF_ flags specify filters that prevent specific types of
23
23
  # transactions from reaching the callback function. The MF_ flags specify the types of DDE
24
24
  # activity that a DDE monitoring application monitors. Using these flags enhances the
25
25
  # performance of a DDE application by eliminating unnecessary calls to the callback function.
26
26
  # This parameter can be one or more of the following values.
27
- # APPCLASS_MONITOR
28
- # Makes it possible for the application to monitor DDE activity in the system. This flag is for use by
29
- # DDE monitoring applications. The application specifies the types of DDE activity to monitor by
30
- # combining one or more monitor flags with the APPCLASS_MONITOR flag. For details, see the following
31
- # Remarks section.
32
- # APPCLASS_STANDARD
33
- # Registers the application as a standard (nonmonitoring) DDEML application.
34
- # APPCMD_CLIENTONLY
35
- # Prevents the application from becoming a server in a DDE conversation. The application can only be a
36
- # client. This flag reduces consumption of resources by the DDEML. It includes the functionality of the
37
- # CBF_FAIL_ALLSVRXACTIONS flag.
38
- # APPCMD_FILTERINITS
39
- # Prevents the DDEML from sending XTYP_CONNECT and XTYP_WILDCONNECT transactions to the application
40
- # until the application has created its string handles and registered its service names or has turned
41
- # off filtering by a subsequent call to the DdeNameService or DdeInitialize function. This flag is
42
- # always in effect when an application calls DdeInitialize for the first time, regardless of whether the
43
- # application specifies the flag. On subsequent calls to DdeInitialize, not specifying this flag turns
44
- # off the application's service-name filters, but specifying it turns on the application's service name
45
- # filters.
46
- # CBF_FAIL_ALLSVRXACTIONS
47
- # Prevents the callback function from receiving server transactions. The system returns
48
- # DDE_FNOTPROCESSED to each client that sends a transaction to this application. This flag is equivalent
49
- # to combining all CBF_FAIL_ flags.
50
- # CBF_FAIL_ADVISES
51
- # Prevents the callback function from receiving XTYP_ADVSTART and XTYP_ADVSTOP transactions. The system
52
- # returns DDE_FNOTPROCESSED to each client that sends an XTYP_ADVSTART or XTYP_ADVSTOP transaction to
53
- # the server.
54
- # CBF_FAIL_CONNECTIONS
55
- # Prevents the callback function from receiving XTYP_CONNECT and XTYP_WILDCONNECT transactions.
56
- # CBF_FAIL_EXECUTES
57
- # Prevents the callback function from receiving XTYP_EXECUTE transactions. The system returns
58
- # DDE_FNOTPROCESSED to a client that sends an XTYP_EXECUTE transaction to the server.
59
- # CBF_FAIL_POKES
60
- # Prevents the callback function from receiving XTYP_POKE transactions. The system returns
61
- # DDE_FNOTPROCESSED to a client that sends an XTYP_POKE transaction to the server.
62
- # CBF_FAIL_REQUESTS
63
- # Prevents the callback function from receiving XTYP_REQUEST transactions. The system returns
64
- # DDE_FNOTPROCESSED to a client that sends an XTYP_REQUEST transaction to the server.
65
- # CBF_FAIL_SELFCONNECTIONS
66
- # Prevents the callback function from receiving XTYP_CONNECT transactions from the application's own
67
- # instance. This flag prevents an application from establishing a DDE conversation with its own
68
- # instance. An application should use this flag if it needs to communicate with other instances of
69
- # itself but not with itself.
70
- # CBF_SKIP_ALLNOTIFICATIONS
71
- # Prevents the callback function from receiving any notifications. This flag is equivalent to combining
72
- # all CBF_SKIP_ flags.
73
- # CBF_SKIP_CONNECT_CONFIRMS
74
- # Prevents the callback function from receiving XTYP_CONNECT_CONFIRM notifications.
75
- # CBF_SKIP_DISCONNECTS
76
- # Prevents the callback function from receiving XTYP_DISCONNECT notifications.
77
- # CBF_SKIP_REGISTRATIONS
78
- # Prevents the callback function from receiving XTYP_REGISTER notifications.
79
- # CBF_SKIP_UNREGISTRATIONS
80
- # Prevents the callback function from receiving XTYP_UNREGISTER notifications.
81
- # MF_CALLBACKS
82
- # Notifies the callback function whenever a transaction is sent to any DDE callback function in the
83
- # system.
84
- # MF_CONV
85
- # Notifies the callback function whenever a conversation is established or terminated.
86
- # MF_ERRORS
87
- # Notifies the callback function whenever a DDE error occurs.
88
- # MF_HSZ_INFO
89
- # Notifies the callback function whenever a DDE application creates, frees, or increments the usage
90
- # count of a string handle or whenever a string handle is freed as a result of a call to the
91
- # DdeUninitialize function.
92
- # MF_LINKS
93
- # Notifies the callback function whenever an advise loop is started or ended.
94
27
  # MF_POSTMSGS
95
28
  # Notifies the callback function whenever the system or an application posts a DDE message.
96
29
  # MF_SENDMSGS
@@ -99,8 +32,6 @@
99
32
  #
100
33
  # *Returns*:: If the function succeeds, the return value is DMLERR_NO_ERROR.
101
34
  # If the function fails, the return value is one of the following values:
102
- # DMLERR_DLL_USAGE
103
- # DMLERR_INVALIDPARAMETER
104
35
  # DMLERR_SYS_ERROR
105
36
  # ---
106
37
  # *Remarks*:
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 8
9
- version: 0.1.8
8
+ - 9
9
+ version: 0.1.9
10
10
  platform: ruby
11
11
  authors:
12
12
  - arvicco
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-08 00:00:00 +04:00
17
+ date: 2010-05-28 00:00:00 +04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: "0"
44
44
  type: :development
45
45
  version_requirements: *id002
46
- description: Describe package my_scripts
46
+ description: Simple scripting framework
47
47
  email: arvitallian@gmail.com
48
48
  executables:
49
49
  - bon
@@ -144,7 +144,7 @@ rubyforge_project: ""
144
144
  rubygems_version: 1.3.6
145
145
  signing_key:
146
146
  specification_version: 3
147
- summary: Describe package my_scripts
147
+ summary: Simple scripting framework
148
148
  test_files:
149
149
  - spec/files/msdn/ddeinit_in.txt
150
150
  - spec/files/msdn/ddeinit_out.txt